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
|
// @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',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -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"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user