🔧 清理 ESLint 配置并修正类型声明
This commit is contained in:
+1
-3
@@ -7,7 +7,6 @@ import globals from 'globals';
|
||||
import pluginVue from 'eslint-plugin-vue';
|
||||
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting';
|
||||
import stylistic from '@stylistic/eslint-plugin';
|
||||
import stylisticJsx from '@stylistic/eslint-plugin-jsx';
|
||||
import vueEslintParser from 'vue-eslint-parser';
|
||||
|
||||
// 支持 .vue 里的 ts/tsx
|
||||
@@ -73,7 +72,6 @@ export default withNuxt(
|
||||
parserOptions: { parser: tseslint.parser },
|
||||
},
|
||||
},
|
||||
stylisticJsx.configs.all,
|
||||
stylistic.configs.customize({
|
||||
indent: 2,
|
||||
quotes: 'single',
|
||||
@@ -83,5 +81,5 @@ export default withNuxt(
|
||||
arrowParens: true,
|
||||
},
|
||||
),
|
||||
) as unknown as ResolvableFlatConfig[]),
|
||||
) as unknown as Parameters<typeof withNuxt>),
|
||||
);
|
||||
|
||||
@@ -49,7 +49,6 @@
|
||||
"@iconify-json/simple-icons": "^1.2.102",
|
||||
"@iconify-json/tabler": "^1.2.45",
|
||||
"@stylistic/eslint-plugin": "^5.10.0",
|
||||
"@stylistic/eslint-plugin-jsx": "^4.4.1",
|
||||
"@vue/eslint-config-typescript": "^14.9.0",
|
||||
"eslint-plugin-vue": "^10.12.1",
|
||||
"globals": "^16.5.0",
|
||||
|
||||
@@ -8,4 +8,4 @@
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user