Skip to content

Commit dff1a30

Browse files
committed
feat(eslint): activate no-constant-binary-expression rule
1 parent 2cca5a3 commit dff1a30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

eslint/rules/base.cjs

+2
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,7 @@ module.exports = defineConfig({
7878
varsIgnorePattern: '^_',
7979
},
8080
],
81+
// Disallow expressions where the operation doesn't affect the value
82+
'no-constant-binary-expression': 'error',
8183
},
8284
});

0 commit comments

Comments
 (0)