1
- module . exports = {
1
+ // @ts -check
2
+ const { defineConfig } = require ( 'eslint-define-config' )
3
+ module . exports = defineConfig ( {
2
4
root : true ,
3
5
env : {
4
6
browser : true ,
@@ -16,9 +18,16 @@ module.exports = {
16
18
jsx : true
17
19
}
18
20
} ,
19
- extends : [ 'plugin:vue/vue3-recommended' , 'prettier' , 'plugin:@typescript-eslint/recommended' , 'plugin:prettier/recommended' ] ,
21
+ extends : [
22
+ 'plugin:vue/vue3-recommended' ,
23
+ 'plugin:@typescript-eslint/recommended' ,
24
+ 'prettier' ,
25
+ 'plugin:prettier/recommended'
26
+ ] ,
20
27
rules : {
21
28
'vue/script-setup-uses-vars' : 'error' ,
29
+ 'vue/no-reserved-component-names' : 'off' ,
30
+ 'vue/no-setup-props-destructure' : 'off' ,
22
31
'@typescript-eslint/ban-ts-ignore' : 'off' ,
23
32
'@typescript-eslint/explicit-function-return-type' : 'off' ,
24
33
'@typescript-eslint/no-explicit-any' : 'off' ,
@@ -31,20 +40,8 @@ module.exports = {
31
40
'@typescript-eslint/ban-types' : 'off' ,
32
41
'@typescript-eslint/no-non-null-assertion' : 'off' ,
33
42
'@typescript-eslint/explicit-module-boundary-types' : 'off' ,
34
- '@typescript-eslint/no-unused-vars' : [
35
- 'error' ,
36
- {
37
- argsIgnorePattern : '^_' ,
38
- varsIgnorePattern : '^_'
39
- }
40
- ] ,
41
- 'no-unused-vars' : [
42
- 'error' ,
43
- {
44
- argsIgnorePattern : '^_' ,
45
- varsIgnorePattern : '^_'
46
- }
47
- ] ,
43
+ '@typescript-eslint/no-unused-vars' : 'off' ,
44
+ 'no-unused-vars' : 'off' ,
48
45
'space-before-function-paren' : 'off' ,
49
46
50
47
'vue/attributes-order' : 'off' ,
@@ -68,6 +65,7 @@ module.exports = {
68
65
math : 'always'
69
66
}
70
67
] ,
71
- 'vue/multi-word-component-names' : 'off'
68
+ 'vue/multi-word-component-names' : 'off' ,
69
+ 'vue/no-v-html' : 'off'
72
70
}
73
- }
71
+ } )
0 commit comments