mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-04-13 05:20:28 +08:00
chore: remove script eslint (#6528)
This commit is contained in:
parent
7c487fea2a
commit
c19381a857
@ -19,7 +19,6 @@ export default defineConfig([
|
||||
// @ts-expect-error -- https://github.com/typescript-eslint/typescript-eslint/issues/11543
|
||||
'react-hooks': pluginReactHooks,
|
||||
'react-compiler': pluginReactCompiler,
|
||||
// @ts-expect-error -- https://github.com/un-ts/eslint-plugin-import-x/issues/421
|
||||
'import-x': pluginImportX,
|
||||
'react-refresh': pluginReactRefresh,
|
||||
'unused-imports': pluginUnusedImports,
|
||||
@ -35,12 +34,7 @@ export default defineConfig([
|
||||
globals: globals.browser,
|
||||
parserOptions: {
|
||||
projectService: {
|
||||
allowDefaultProject: [
|
||||
'eslint.config.ts',
|
||||
'src/polyfills/*.js',
|
||||
'src-tauri/src/enhance/builtin/*.js',
|
||||
'scripts/*.mjs',
|
||||
],
|
||||
allowDefaultProject: ['eslint.config.ts', 'src/polyfills/*.js'],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@ -123,11 +123,11 @@
|
||||
"vite-plugin-svgr": "^4.5.0"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{ts,tsx,js,mjs,jsx}": [
|
||||
"*.{ts,tsx}": [
|
||||
"eslint --fix --max-warnings=0",
|
||||
"prettier --write"
|
||||
],
|
||||
"*.{css,scss,json,md,toml}": [
|
||||
"*.{js,mjs,css,scss,json,md,toml}": [
|
||||
"prettier --write"
|
||||
]
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user