Skip to content

Commit a6dc171

Browse files
committed
Add option to no-extra-boolean-cast
1 parent a26a2f6 commit a6dc171

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ module.exports = {
4040
],
4141
'no-empty-static-block': 'error',
4242
'no-ex-assign': 'error',
43-
'no-extra-boolean-cast': 'error',
43+
'no-extra-boolean-cast': [
44+
'error',
45+
{
46+
enforceForInnerExpressions: true
47+
},
48+
],
4449
// Disabled because of https://github.com/eslint/eslint/issues/6028
4550
// 'no-extra-parens': [
4651
// 'error',

0 commit comments

Comments
 (0)