We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5b2250 commit 22a3742Copy full SHA for 22a3742
1 file changed
eslint.config.mjs
@@ -193,6 +193,14 @@ export default defineConfig(
193
// (it can make `yarn ts` fail after `yarn lint-fix`)
194
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
195
196
+ '@typescript-eslint/no-unnecessary-condition': [
197
+ 'error',
198
+ {
199
+ allowConstantLoopConditions: 'only-allowed-literals',
200
+ checkTypePredicates: true,
201
+ },
202
+ ],
203
+
204
// Consider enabling these in the future
205
'@typescript-eslint/unbound-method': 'off',
206
'@typescript-eslint/only-throw-error': 'off',
0 commit comments