@@ -70,7 +70,6 @@ function factory({ ignores = [] }: FactoryOptions = {}) {
70
70
ecmaVersion : 'latest' ,
71
71
sourceType : 'module' ,
72
72
globals : globals . browser ,
73
- // parser: vueParser,
74
73
parserOptions : {
75
74
parser : tseslint . parser ,
76
75
ecmaVersion : 'latest' ,
@@ -92,17 +91,16 @@ function factory({ ignores = [] }: FactoryOptions = {}) {
92
91
}
93
92
} ,
94
93
rules : {
95
- 'no-console' :
96
- process . env . NODE_ENV === 'production'
97
- ? [
98
- 'error' ,
94
+ 'no-console' : [
95
+ process . env . NODE_ENV === 'production' ? 'error' : 'warn' ,
99
96
{
100
- allow : [ 'warn' , 'error' ]
97
+ allow : [ 'info' , ' warn', 'error' ]
101
98
}
102
- ]
103
- : 'off' ,
104
- 'no-debugger' : process . env . NODE_ENV === 'production' ? 'error' : 'off' ,
99
+ ] ,
100
+ 'no-debugger' : process . env . NODE_ENV === 'production' ? 'error' : 'warn' ,
105
101
'no-return-assign' : 'off' ,
102
+ 'no-sparse-arrays' : 'off' ,
103
+ 'no-empty' : [ 'error' , { allowEmptyCatch : true } ] ,
106
104
107
105
'import/no-mutable-exports' : 'error' ,
108
106
'import/order' : [
@@ -220,6 +218,7 @@ function factory({ ignores = [] }: FactoryOptions = {}) {
220
218
allowTaggedTemplates : true ,
221
219
}
222
220
] ,
221
+ '@typescript-eslint/no-empty-object-type' : 'off' ,
223
222
224
223
'vue/eqeqeq' : 'error' ,
225
224
'vue/object-curly-spacing' : [ 'error' , 'always' ] ,
@@ -271,7 +270,7 @@ function factory({ ignores = [] }: FactoryOptions = {}) {
271
270
} ,
272
271
} ,
273
272
{
274
- files : [ '**/*.{jsx,tsx}' ] ,
273
+ files : [ '**/*.{jsx,tsx,vue }' ] ,
275
274
plugins : {
276
275
react : reactPlugin ,
277
276
} ,
@@ -306,6 +305,15 @@ function factory({ ignores = [] }: FactoryOptions = {}) {
306
305
'react/no-children-prop' : 'off'
307
306
} ,
308
307
} ,
308
+ {
309
+ files : [ '**/*.vue' ] ,
310
+ rules : {
311
+ 'no-unused-vars' : 'off' ,
312
+ 'no-undef' : 'off' ,
313
+ '@typescript-eslint/no-unused-vars' : 'off' ,
314
+ '@typescript-eslint/consistent-type-imports' : 'off'
315
+ }
316
+ } ,
309
317
...jsoncPlugin . configs [ 'flat/recommended-with-jsonc' ] ,
310
318
{
311
319
files : [ '**/*.{json,jsonc}' ] ,
0 commit comments