chore: remove script eslint (#6528)

This commit is contained in:
Slinetrac 2026-03-16 15:23:34 +08:00 committed by GitHub
parent 7c487fea2a
commit c19381a857
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 9 deletions

View File

@ -19,7 +19,6 @@ export default defineConfig([
// @ts-expect-error -- https://github.com/typescript-eslint/typescript-eslint/issues/11543 // @ts-expect-error -- https://github.com/typescript-eslint/typescript-eslint/issues/11543
'react-hooks': pluginReactHooks, 'react-hooks': pluginReactHooks,
'react-compiler': pluginReactCompiler, 'react-compiler': pluginReactCompiler,
// @ts-expect-error -- https://github.com/un-ts/eslint-plugin-import-x/issues/421
'import-x': pluginImportX, 'import-x': pluginImportX,
'react-refresh': pluginReactRefresh, 'react-refresh': pluginReactRefresh,
'unused-imports': pluginUnusedImports, 'unused-imports': pluginUnusedImports,
@ -35,12 +34,7 @@ export default defineConfig([
globals: globals.browser, globals: globals.browser,
parserOptions: { parserOptions: {
projectService: { projectService: {
allowDefaultProject: [ allowDefaultProject: ['eslint.config.ts', 'src/polyfills/*.js'],
'eslint.config.ts',
'src/polyfills/*.js',
'src-tauri/src/enhance/builtin/*.js',
'scripts/*.mjs',
],
}, },
}, },
}, },

View File

@ -123,11 +123,11 @@
"vite-plugin-svgr": "^4.5.0" "vite-plugin-svgr": "^4.5.0"
}, },
"lint-staged": { "lint-staged": {
"*.{ts,tsx,js,mjs,jsx}": [ "*.{ts,tsx}": [
"eslint --fix --max-warnings=0", "eslint --fix --max-warnings=0",
"prettier --write" "prettier --write"
], ],
"*.{css,scss,json,md,toml}": [ "*.{js,mjs,css,scss,json,md,toml}": [
"prettier --write" "prettier --write"
] ]
}, },