From a6dc171bca55027e4f2ff42ba7ba18e8e6c4c54e Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sat, 1 Jun 2024 13:43:54 +0200 Subject: [PATCH] Add option to `no-extra-boolean-cast` --- index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 1500076..9cef9cb 100644 --- a/index.js +++ b/index.js @@ -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',