|
@@ -17,14 +17,7 @@ export default {
|
|
|
createDefaultProgram: false,
|
|
|
extraFileExtensions: ['.vue'],
|
|
|
},
|
|
|
- plugins: [
|
|
|
- 'vue',
|
|
|
- '@typescript-eslint',
|
|
|
- 'import',
|
|
|
- // TODO: 改造完成后开启
|
|
|
- // 'unused-imports',
|
|
|
- // 'simple-import-sort',
|
|
|
- ],
|
|
|
+ plugins: ['vue', '@typescript-eslint', 'import'],
|
|
|
extends: [
|
|
|
'eslint:recommended',
|
|
|
'plugin:vue/vue3-recommended',
|
|
@@ -37,19 +30,10 @@ export default {
|
|
|
'no-use-before-define': 'off',
|
|
|
'space-before-function-paren': 'off',
|
|
|
|
|
|
- // TODO: 改造完成后开启
|
|
|
- // 'simple-import-sort/imports': 'error',
|
|
|
- // 'simple-import-sort/exports': 'error',
|
|
|
-
|
|
|
'import/first': 'error',
|
|
|
'import/newline-after-import': 'error',
|
|
|
'import/no-duplicates': 'error',
|
|
|
|
|
|
- // 'unused-imports/no-unused-imports': 'error',
|
|
|
- // 'unused-imports/no-unused-vars': [
|
|
|
- // 'warn',
|
|
|
- // { vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' },
|
|
|
- // ],
|
|
|
'@typescript-eslint/no-unused-vars': [
|
|
|
'error',
|
|
|
{
|
|
@@ -58,13 +42,13 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
'@typescript-eslint/ban-ts-ignore': 'off',
|
|
|
+ '@typescript-eslint/ban-ts-comment': 'off',
|
|
|
+ '@typescript-eslint/ban-types': 'off',
|
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
|
'@typescript-eslint/no-empty-function': 'off',
|
|
|
'@typescript-eslint/no-use-before-define': 'off',
|
|
|
- '@typescript-eslint/ban-ts-comment': 'off',
|
|
|
- '@typescript-eslint/ban-types': 'off',
|
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
|
'vue/script-setup-uses-vars': 'error',
|