fix: ignore rule no-explicit-any

This commit is contained in:
NFish 2025-02-08 17:50:35 +08:00
parent 91e411bbaa
commit 20bcb49932

View File

@ -4,7 +4,7 @@ import tailwind from 'eslint-plugin-tailwindcss'
import ts from 'typescript-eslint' import ts from 'typescript-eslint'
const antConfig = await antfu({ jsonc: false }) const antConfig = await antfu({ jsonc: false })
// ...compat.extends("next/core-web-vitals", "next/typescript"),
const eslintConfig = [ const eslintConfig = [
...antConfig, ...antConfig,
js.configs.recommended, js.configs.recommended,
@ -22,6 +22,11 @@ const eslintConfig = [
'!**/.*', '!**/.*',
'!**/dist', '!**/dist',
'!**/build', '!**/build',
'!**/.storybook',
'!**/.next',
'!**/.output',
'!**/public',
'!**/out',
], ],
cssFilesRefreshRate: 5_000, cssFilesRefreshRate: 5_000,
removeDuplicates: true, removeDuplicates: true,
@ -33,7 +38,12 @@ const eslintConfig = [
}, },
}, },
{ {
ignores: ['node_modules/**', '.next/**', 'build/**', 'dist/**', 'out/**'], rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
},
{
ignores: ['node_modules/**', '.next/**', 'build/**', 'dist/**', 'out/**', 'public/**'],
}, },
] ]