@@ -10,19 +10,17 @@ export default [
1010 ...tseslint . configs . recommended ,
1111 {
1212 rules : {
13- "@typescript-eslint/ban-ts-comment" : "warn" ,
14- "@typescript-eslint/no-empty-object-type" : "warn" ,
15- "@typescript-eslint/no-explicit-any" : "off" ,
13+ "@typescript-eslint/no-empty-object-type" : [ "error" , { allowInterfaces : "with-single-extends" } ] ,
1614 "@typescript-eslint/no-namespace" : [ "error" , { allowDeclarations : true } ] ,
15+ "no-empty" : [ "error" , { allowEmptyCatch : true } ] ,
16+ "prefer-const" : [ "error" , { destructuring : "all" } ] ,
17+ } ,
18+ } ,
19+ {
20+ rules : {
21+ "@typescript-eslint/no-explicit-any" : "off" ,
1722 "@typescript-eslint/no-require-imports" : "off" ,
18- "@typescript-eslint/no-unsafe-function-type" : "warn" ,
1923 "@typescript-eslint/no-unused-vars" : "warn" ,
20- "no-case-declarations" : "warn" ,
21- "no-empty" : "warn" ,
22- "no-useless-escape" : "warn" ,
23- "prefer-const" : "off" ,
24- "prefer-rest-params" : "warn" ,
25- "prefer-spread" : "warn" ,
2624 } ,
2725 } ,
2826] ;
0 commit comments