From b9487c266be22473198dc4d7b79a3df56ee8ac59 Mon Sep 17 00:00:00 2001 From: chengchongzhen <15939054361@163.com> Date: Wed, 18 Dec 2024 15:20:47 +0800 Subject: [PATCH 1/2] fix: remove TypeScript error suppression for missing types in Vue ESLint config --- internal/lint-configs/eslint-config/src/configs/vue.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/lint-configs/eslint-config/src/configs/vue.ts b/internal/lint-configs/eslint-config/src/configs/vue.ts index 27cc3cf29c1..d1c6521cff4 100644 --- a/internal/lint-configs/eslint-config/src/configs/vue.ts +++ b/internal/lint-configs/eslint-config/src/configs/vue.ts @@ -4,7 +4,6 @@ import { interopDefault } from '../util'; export async function vue(): Promise { const [pluginVue, parserVue, parserTs] = await Promise.all([ - // @ts-expect-error missing types interopDefault(import('eslint-plugin-vue')), interopDefault(import('vue-eslint-parser')), // @ts-expect-error missing types From 378307ae02af8ace0337b98013676b10ebf7ae61 Mon Sep 17 00:00:00 2001 From: chengchongzhen <15939054361@163.com> Date: Wed, 18 Dec 2024 15:21:41 +0800 Subject: [PATCH 2/2] fix: enhance application configuration with CSS options type support --- internal/vite-config/src/config/application.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/vite-config/src/config/application.ts b/internal/vite-config/src/config/application.ts index f227609449c..f9808cc7493 100644 --- a/internal/vite-config/src/config/application.ts +++ b/internal/vite-config/src/config/application.ts @@ -1,4 +1,4 @@ -import type { UserConfig } from 'vite'; +import type { CSSOptions, UserConfig } from 'vite'; import type { DefineApplicationOptions } from '../typing'; @@ -100,7 +100,7 @@ function defineApplicationConfig(userConfigPromise?: DefineApplicationOptions) { }); } -function createCssOptions(injectGlobalScss = true) { +function createCssOptions(injectGlobalScss = true): CSSOptions { const root = findMonorepoRoot(); return { preprocessorOptions: injectGlobalScss