Skip to content

Commit

Permalink
lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vernaillen committed Aug 19, 2024
1 parent bc24c79 commit b2444bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { promises as fsp } from 'node:fs'
import { defineNuxtModule, installModule, createResolver, addComponentsDir, addComponent, addTemplate } from '@nuxt/kit'
import { defineNuxtModule, installModule, createResolver, addComponentsDir, addTemplate } from '@nuxt/kit'
import { genDynamicImport } from 'knitwork'
import type { Component } from '@nuxt/schema'
import { name, version } from '../package.json'
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/components/blocks/CoreButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ if (props.block.attributes?.metadata) {
:rel="block.attributes.rel"
:style="block.attributes.style"
:variant
:class="getCssClasses(props.block)"
:size="convertFontSize(props.block.attributes?.fontSize, '', 'md')"
:class="getCssClasses(block)"
:size="convertFontSize(block.attributes?.fontSize, '', 'md')"
>
<span v-sanitize="block.attributes.text" />
</UButton>
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/util/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { convertFontSize } from './attributeFontSize'
import { getColor } from './attributeColor'

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const getCssClasses = function getCssClasses(block: any) {
const text = convertFontSize(block.attributes?.fontSize, 'text-')
const color = getColor(block.attributes?.textColor)
Expand All @@ -10,4 +11,3 @@ const getCssClasses = function getCssClasses(block: any) {
}

export { getCssClasses, convertFontSize, getColor }

0 comments on commit b2444bc

Please sign in to comment.