@@ -96,7 +96,7 @@ export default tseslint.config(
96
96
] ,
97
97
98
98
'@typescript-eslint/ban-ts-comment' : 'error' ,
99
- '@typescript-eslint/no-unsafe-function-type' : 'off' , // TODO: we should turn this on in a new PR
99
+ '@typescript-eslint/no-unsafe-function-type' : 'off' ,
100
100
'@typescript-eslint/explicit-module-boundary-types' : [
101
101
'error' ,
102
102
{ allowArgumentsExplicitlyTypedAsAny : true } ,
@@ -107,26 +107,33 @@ export default tseslint.config(
107
107
] ,
108
108
'@typescript-eslint/no-empty-object-type' : [
109
109
'error' ,
110
- { allowInterfaces : 'with-single-extends' } , // maybe we should turn this on in a new PR
110
+ { allowInterfaces : 'with-single-extends' } ,
111
111
] ,
112
112
'@typescript-eslint/no-empty-interface' : 'off' ,
113
- '@typescript-eslint/no-explicit-any' : 'off' , // maybe we should turn this on in a new PR
113
+ '@typescript-eslint/no-explicit-any' : 'off' ,
114
114
'no-extra-semi' : 'off' ,
115
115
'@typescript-eslint/no-extra-semi' : 'off' , // conflicts with prettier
116
116
'@typescript-eslint/no-inferrable-types' : 'off' ,
117
- '@typescript-eslint/no-unused-expressions' : 'off' , // maybe we should turn this on in a new PR
118
- '@typescript-eslint/no-unused-vars' : 'off' , // maybe we should turn this on in a new PR
117
+ '@typescript-eslint/no-unused-vars' : [
118
+ 'error' ,
119
+ {
120
+ args : 'all' ,
121
+ argsIgnorePattern : '^_' ,
122
+ caughtErrors : 'all' ,
123
+ caughtErrorsIgnorePattern : '^_' ,
124
+ destructuredArrayIgnorePattern : '^_' ,
125
+ varsIgnorePattern : '^_' ,
126
+ ignoreRestSiblings : true ,
127
+ } ,
128
+ ] ,
119
129
'@typescript-eslint/no-require-imports' : 'off' ,
120
130
'@typescript-eslint/consistent-type-imports' : [
121
131
'error' ,
122
132
{ prefer : 'type-imports' , disallowTypeAnnotations : false } ,
123
133
] ,
124
134
// disable rules set in @typescript -eslint/stylistic which conflict with current code
125
- // maybe we should turn them on in a new PR
135
+ // we should discuss if we want to enable these as they encourage consistent code
126
136
'@typescript-eslint/array-type' : 'off' ,
127
- '@typescript-eslint/ban-tslint-comment' : 'off' ,
128
- '@typescript-eslint/consistent-generic-constructors' : 'off' ,
129
- '@typescript-eslint/consistent-indexed-object-style' : 'off' ,
130
137
'@typescript-eslint/consistent-type-definitions' : 'off' ,
131
138
'@typescript-eslint/prefer-for-of' : 'off' ,
132
139
'@typescript-eslint/prefer-function-type' : 'off' ,
@@ -270,6 +277,8 @@ export default tseslint.config(
270
277
'n/no-unsupported-features/es-builtins' : 'off' ,
271
278
'n/no-unsupported-features/node-builtins' : 'off' ,
272
279
'@typescript-eslint/explicit-module-boundary-types' : 'off' ,
280
+ '@typescript-eslint/no-unused-expressions' : 'off' ,
281
+ '@typescript-eslint/no-unused-vars' : 'off' ,
273
282
'no-undef' : 'off' ,
274
283
'no-empty' : 'off' ,
275
284
'no-constant-condition' : 'off' ,
@@ -298,6 +307,7 @@ export default tseslint.config(
298
307
name : 'disables/dts' ,
299
308
files : [ '**/*.d.ts' ] ,
300
309
rules : {
310
+ '@typescript-eslint/consistent-indexed-object-style' : 'off' ,
301
311
'@typescript-eslint/triple-slash-reference' : 'off' ,
302
312
} ,
303
313
} ,
0 commit comments