Skip to content

Commit

Permalink
Add option to no-extra-boolean-cast
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jun 1, 2024
1 parent a26a2f6 commit a6dc171
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ module.exports = {
],
'no-empty-static-block': 'error',
'no-ex-assign': 'error',
'no-extra-boolean-cast': 'error',
'no-extra-boolean-cast': [
'error',
{
enforceForInnerExpressions: true
},
],
// Disabled because of https://github.com/eslint/eslint/issues/6028
// 'no-extra-parens': [
// 'error',
Expand Down

0 comments on commit a6dc171

Please sign in to comment.