diff --git a/dashboard/eslint.config.js b/dashboard/eslint.config.js index 61baa885..10d55647 100644 --- a/dashboard/eslint.config.js +++ b/dashboard/eslint.config.js @@ -28,7 +28,7 @@ export default tseslint.config( { allowConstantExport: true }, ], // 关闭或降级其他规则 - '@typescript-eslint/no-explicit-any': 'off', + '@typescript-eslint/no-explicit-any': 'warn', '@typescript-eslint/no-unused-vars': 'warn', }, }, diff --git a/dashboard/tsconfig.app.json b/dashboard/tsconfig.app.json index ed283499..7b412ba5 100644 --- a/dashboard/tsconfig.app.json +++ b/dashboard/tsconfig.app.json @@ -24,11 +24,13 @@ /* Linting */ "strict": true, + "allowSyntheticDefaultImports": true, "noUnusedLocals": true, "noUnusedParameters": true, "erasableSyntaxOnly": true, "noFallthroughCasesInSwitch": true, - "noUncheckedSideEffectImports": true + "noUncheckedSideEffectImports": true, + "skipLibCheck": true }, "include": ["src"] } diff --git a/dashboard/vite.config.ts b/dashboard/vite.config.ts index ed0a80fc..57fb2810 100644 --- a/dashboard/vite.config.ts +++ b/dashboard/vite.config.ts @@ -110,7 +110,6 @@ export default defineConfig({ 'tailwind-merge', 'class-variance-authority', 'axios', - 'jotai', ], // 其他