perf: refs #8006 handle rules
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
1d5509313a
commit
3c68220903
|
@ -31,38 +31,41 @@ export default {
|
|||
},
|
||||
},
|
||||
rules: {
|
||||
...vue.rules['flat/strongly-recommended'],
|
||||
...js.configs.recommended.rules,
|
||||
semi: 'off',
|
||||
'generator-star-spacing': 'off',
|
||||
'arrow-parens': 'off',
|
||||
'one-var': 'off',
|
||||
'no-void': 'off',
|
||||
'generator-star-spacing': 'warn',
|
||||
'arrow-parens': 'warn',
|
||||
'no-var': 'error',
|
||||
'prefer-const': 'error',
|
||||
'prefer-template': 'warn',
|
||||
'prefer-destructuring': 'warn',
|
||||
'prefer-spread': 'warn',
|
||||
'prefer-rest-params': 'warn',
|
||||
'prefer-object-spread': 'warn',
|
||||
'prefer-arrow-callback': 'warn',
|
||||
'prefer-numeric-literals': 'warn',
|
||||
'prefer-exponentiation-operator': 'warn',
|
||||
'prefer-regex-literals': 'warn',
|
||||
'one-var': {
|
||||
let: 'never',
|
||||
const: 'never',
|
||||
},
|
||||
'no-void': 'warn',
|
||||
'prefer-promise-reject-errors': 'error',
|
||||
'space-before-function-paren': 'off',
|
||||
'multiline-ternary': 'off',
|
||||
'js/first': 'off',
|
||||
'eslint/first': 'off',
|
||||
'eslint/dynamic-import-chunkname': 'off',
|
||||
'eslint/named': 'off',
|
||||
'eslint/namespace': 'error',
|
||||
'eslint/default': 'error',
|
||||
'eslint/export': 'error',
|
||||
'eslint/extensions': 'off',
|
||||
'eslint/no-unresolved': 'off',
|
||||
'eslint/no-extraneous-dependencies': 'off',
|
||||
'eslint/no-import-module-exports': 'off',
|
||||
'eslint/no-self-import': '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',
|
||||
'space-before-function-paren': 'warn',
|
||||
'multiline-ternary': 'warn',
|
||||
'no-restricted-imports': 'warn',
|
||||
'no-import-assign': 'warn',
|
||||
'no-duplicate-imports': 'warn',
|
||||
'no-useless-rename': 'warn',
|
||||
'eslint/no-named-as-default': 'warn',
|
||||
'eslint/no-named-as-default-member': 'warn',
|
||||
'no-unsafe-optional-chaining': 'warn',
|
||||
'no-undef': 'error',
|
||||
'no-unused-vars': 'warn',
|
||||
'no-unused-vars': 'error',
|
||||
'no-console': 'error',
|
||||
'no-debugger': 'off',
|
||||
'no-debugger': 'error',
|
||||
'no-useless-escape': 'error',
|
||||
'no-prototype-builtins': 'error',
|
||||
'no-async-promise-executor': 'error',
|
||||
|
@ -70,14 +73,6 @@ export default {
|
|||
'no-constant-condition': 'error',
|
||||
'no-unsafe-finally': 'error',
|
||||
'no-extend-native': 'error',
|
||||
'vue/no-unused-components': 'error',
|
||||
'vue/no-unused-properties': 'error',
|
||||
'vue/no-multiple-template-root': 'error',
|
||||
'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',
|
||||
},
|
||||
ignores: [
|
||||
'/dist',
|
||||
|
|
Loading…
Reference in New Issue