refactor: refs #8006 update ESLint rules and disable unused rules

This commit is contained in:
Javier Segarra 2025-03-28 02:27:46 +01:00
parent 0b614f15d8
commit 687bd54e64
2 changed files with 12 additions and 12 deletions

View File

@ -32,23 +32,18 @@ export default {
},
rules: {
...js.configs.recommended.rules,
semi: 'off',
'generator-star-spacing': 'off',
'arrow-parens': 'off',
'one-var': 'off',
'no-void': 'off',
'prefer-promise-reject-errors': 'error',
'space-before-function-paren': 'off',
'multiline-ternary': 'off',
'js/first': 'off',
'vue/prefer-import-from-vue': 'error',
'eslint/first': 'off',
'eslint/dynamic-import-chunkname': 'off',
'no-restricted-imports': 'off',
'no-import-assign': 'off',
'no-duplicate-imports': 'off',
'no-useless-rename': 'off',
'no-named-as-default': 'off',
'no-named-as-default-member': 'off',
'eslint/named': 'off',
'no-unsafe-optional-chaining': 'off',
'eslint/namespace': 'error',
'eslint/default': 'error',
'eslint/export': 'error',
@ -57,8 +52,13 @@ export default {
'eslint/no-extraneous-dependencies': 'off',
'eslint/no-import-module-exports': 'off',
'eslint/no-self-import': 'off',
semi: 'off',
'space-before-function-paren': 'off',
'no-restricted-imports': 'off',
'no-import-assign': 'off',
'no-duplicate-imports': 'off',
'no-useless-rename': 'off',
'no-named-as-default': 'off',
'no-named-as-default-member': 'off',
'no-unsafe-optional-chaining': 'off',
'no-undef': 'error',
'no-unused-vars': 'warn',
'no-console': 'error',
@ -76,8 +76,8 @@ export default {
'vue/no-v-html': 'error',
'vue/no-v-model-argument': 'error',
'vue/no-parsing-error': 'error',
'vue/prefer-import-from-vue': 'error',
'vue/no-deprecated-slot-attribute': 'error',
'prefer-promise-reject-errors': 'error',
},
ignores: [
'/dist',

View File

@ -1,4 +1,4 @@
/* eslint-disable */
// https://github.com/michael-ciniawsky/postcss-load-config
import autoprefixer from 'autoprefixer';