From b2444bcfebd7e5b92fac1753ee6e504d18b5e61f Mon Sep 17 00:00:00 2001 From: Wouter Vernaillen Date: Mon, 19 Aug 2024 15:18:19 +0200 Subject: [PATCH] lint:fix --- src/module.ts | 2 +- src/runtime/components/blocks/CoreButton.vue | 4 ++-- src/runtime/util/index.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/module.ts b/src/module.ts index e42606c..f4ebf59 100644 --- a/src/module.ts +++ b/src/module.ts @@ -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' diff --git a/src/runtime/components/blocks/CoreButton.vue b/src/runtime/components/blocks/CoreButton.vue index c78825f..cc6c30b 100644 --- a/src/runtime/components/blocks/CoreButton.vue +++ b/src/runtime/components/blocks/CoreButton.vue @@ -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')" > diff --git a/src/runtime/util/index.ts b/src/runtime/util/index.ts index 8d9369a..f6a3475 100644 --- a/src/runtime/util/index.ts +++ b/src/runtime/util/index.ts @@ -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) @@ -10,4 +11,3 @@ const getCssClasses = function getCssClasses(block: any) { } export { getCssClasses, convertFontSize, getColor } -