Skip to content

Commit

Permalink
Enable no-constant-binary-expression rule
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Nov 9, 2023
1 parent dd2864f commit c6a6dfa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,10 @@ const config = {
// https://typescript-eslint.io/rules/no-array-constructor/
'no-array-constructor': 'off',
'@typescript-eslint/no-array-constructor': 'warn',
// Error on expressions where operations with ||, && and
// ?? operators have likely unintended effects
// https://eslint.org/docs/latest/rules/no-constant-binary-expression
'no-constant-binary-expression': 'error',
// Warn on dangling promises without await
'@typescript-eslint/no-floating-promises': ['warn', { ignoreVoid: false }],
// Warn on redeclare of variables
Expand Down

0 comments on commit c6a6dfa

Please sign in to comment.