@@ -4,14 +4,7 @@ import globals from 'globals'
44import typescriptEslint from 'typescript-eslint'
55import eslintConfigPrettier from 'eslint-config-prettier'
66
7- const recommended = eslintPluginVue . configs [ 'flat/recommended' ] . map ( ( item ) => {
8- if ( item . rules ) delete item . rules [ 'vue/multi-word-component-names' ]
9- if ( item . rules ) delete item . rules [ 'vue/singleline-html-element-content-newline' ]
10- if ( item . rules ) delete item . rules [ 'vue/html-self-closing' ]
11- if ( item . rules ) delete item . rules [ 'vue/html-indent' ]
12- if ( item . rules ) delete item . rules [ 'vue/html-closing-bracket-newline' ]
13- return item
14- } )
7+ const recommended = eslintPluginVue . configs [ 'flat/recommended' ]
158
169export default typescriptEslint . config (
1710 { ignores : [ '*.d.ts' , '**/coverage' , '**/dist' ] } ,
@@ -45,19 +38,20 @@ export default typescriptEslint.config(
4538 'vue/no-mutating-props' : 'off' ,
4639 'vue/multi-word-component-names' : 'off' ,
4740 'vue/require-default-prop' : 'off' , // Durch typescript ist das immer ersichtlich, dass es undefined sein kann.
41+ 'vue/singleline-html-element-content-newline' : 'off' ,
4842 'vue/html-self-closing' : 'off' ,
43+ 'vue/html-indent' : 'off' ,
44+ 'vue/html-closing-bracket-newline' : 'off' ,
4945 '@typescript-eslint/no-explicit-any' : 'off' ,
5046 '@typescript-eslint/no-unused-vars' : [
5147 'error' ,
5248 { argsIgnorePattern : '^_' , destructuredArrayIgnorePattern : '^_' , ignoreRestSiblings : true } ,
5349 ] ,
5450 'no-unused-vars' : 'off' ,
55- 'vue/no-ref-object-destructure' : 'error' ,
5651 'vue/no-undef-components' : [ 'error' , { ignorePatterns : [ 'router-link' , 'router-view' ] } ] ,
5752 'vue/no-unused-refs' : 'error' ,
5853 'vue/no-useless-mustaches' : 'error' ,
5954 'vue/no-useless-v-bind' : 'error' ,
60- 'vue/v-on-function-call' : 'error' ,
6155 'vue/no-unused-properties' : [ 'error' , { groups : [ 'props' , 'data' , 'computed' , 'methods' , 'setup' ] } ] ,
6256 'vue/html-button-has-type' : 'error' ,
6357 'vue/no-ref-object-reactivity-loss' : 'error' ,
0 commit comments