1
- // @ts -check
2
- const { defineConfig } = require ( 'eslint-define-config' )
3
- module . exports = defineConfig ( {
1
+ module . exports = {
4
2
root : true ,
5
3
env : {
6
4
browser : true ,
@@ -21,7 +19,6 @@ module.exports = defineConfig({
21
19
extends : [ 'plugin:vue/vue3-recommended' , 'prettier' , 'plugin:@typescript-eslint/recommended' , 'plugin:prettier/recommended' ] ,
22
20
rules : {
23
21
'vue/script-setup-uses-vars' : 'error' ,
24
- 'vue/no-reserved-component-names' : 'off' ,
25
22
'@typescript-eslint/ban-ts-ignore' : 'off' ,
26
23
'@typescript-eslint/explicit-function-return-type' : 'off' ,
27
24
'@typescript-eslint/no-explicit-any' : 'off' ,
@@ -34,8 +31,20 @@ module.exports = defineConfig({
34
31
'@typescript-eslint/ban-types' : 'off' ,
35
32
'@typescript-eslint/no-non-null-assertion' : 'off' ,
36
33
'@typescript-eslint/explicit-module-boundary-types' : 'off' ,
37
- '@typescript-eslint/no-unused-vars' : 'error' ,
38
- 'no-unused-vars' : 'error' ,
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
+ ] ,
39
48
'space-before-function-paren' : 'off' ,
40
49
41
50
'vue/attributes-order' : 'off' ,
@@ -61,4 +70,4 @@ module.exports = defineConfig({
61
70
] ,
62
71
'vue/multi-word-component-names' : 'off'
63
72
}
64
- } )
73
+ }
0 commit comments