@@ -35,6 +35,7 @@ module.exports = {
35
35
"html" ,
36
36
"unicorn" ,
37
37
"curev" ,
38
+ "unused-imports" ,
38
39
"no-only-tests"
39
40
] ,
40
41
settings : {
@@ -191,7 +192,6 @@ module.exports = {
191
192
"curly" : [ "error" , "all" ] ,
192
193
"quotes" : [ "error" , "double" ] ,
193
194
"quote-props" : [ "error" , "consistent-as-needed" ] ,
194
- "no-unused-vars" : "warn" ,
195
195
"no-param-reassign" : "off" ,
196
196
"array-bracket-spacing" : [ "error" , "never" ] ,
197
197
"brace-style" : [ "error" , "1tbs" , { allowSingleLine : true } ] ,
@@ -309,7 +309,12 @@ module.exports = {
309
309
"unicorn/prefer-type-error" : "error" ,
310
310
// Use new when throwing error
311
311
"unicorn/throw-new-error" : "error" ,
312
-
312
+ "no-unused-vars" : "off" , // or "@typescript-eslint/no-unused-vars": "off",
313
+ "unused-imports/no-unused-imports" : "error" ,
314
+ "unused-imports/no-unused-vars" : [
315
+ "error" ,
316
+ { vars : "all" , varsIgnorePattern : "^_" , args : "after-used" , argsIgnorePattern : "^_" }
317
+ ] ,
313
318
"no-use-before-define" : [ "error" , { functions : false , classes : false , variables : true } ] ,
314
319
"eslint-comments/disable-enable-pair" : "off" ,
315
320
"import/no-named-as-default-member" : "off" ,
0 commit comments