Skip to content

Commit c867031

Browse files
committed
Disable @typescript-eslint/no-unnecessary-condition rule
1 parent 1fa25bf commit c867031

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

index.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,16 @@ module.exports = {
222222
allowDestructuring: true
223223
}
224224
],
225-
'@typescript-eslint/no-unnecessary-condition': [
226-
'error',
227-
{
228-
ignoreRhs: true
229-
}
230-
],
225+
226+
// TODO: Reconsider enabling this again in 2020.
227+
// Disable because it has too many false-positives: https://github.com/typescript-eslint/typescript-eslint/search?q=no-unnecessary-condition+is%3Aissue&state=open&type=Issues
228+
// '@typescript-eslint/no-unnecessary-condition': [
229+
// 'error',
230+
// {
231+
// ignoreRhs: true
232+
// }
233+
// ],
234+
231235
'@typescript-eslint/no-unnecessary-qualifier': 'error',
232236
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
233237
'@typescript-eslint/no-unnecessary-type-assertion': 'error',

0 commit comments

Comments
 (0)