Skip to content

Commit

Permalink
Add @typescript-eslint/no-unnecessary-boolean-literal-compare rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Feb 5, 2020
1 parent 1a02f88 commit c3d723b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -299,6 +299,7 @@ module.exports = {
],
'no-throw-literal': 'off',
'@typescript-eslint/no-throw-literal': 'error',
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',

// TODO: Reconsider enabling this again in 2020.
// 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
Expand Down

0 comments on commit c3d723b

Please sign in to comment.