Skip to content

Commit

Permalink
feat: add no-constant-binary-expression error
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 15, 2022
1 parent cea52ac commit 2c3b541
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -22,6 +22,7 @@ Forked from [`@antfu/eslint-config`](https://github.com/antfu/eslint-config)
- Improved component library linting & formatting
- Stacks support
- Laravel support
- Other minor additions, i.e. `no-constant-binary-expression` usage

## Usage

Expand Down
1 change: 1 addition & 0 deletions packages/basic/index.js
Expand Up @@ -204,6 +204,7 @@ module.exports = {
'comma-style': ['error', 'last'],
'comma-dangle': ['error', 'always-multiline'],
'no-constant-condition': 'warn',
'no-constant-binary-expression': 'error',
'no-debugger': 'error',
'no-console': ['error', { allow: ['warn', 'error'] }],
'no-cond-assign': ['error', 'always'],
Expand Down

0 comments on commit 2c3b541

Please sign in to comment.