From 2c3b541f342539ef83698bc771e9a471b22d4629 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 15 Oct 2022 17:04:39 +0200 Subject: [PATCH] feat: add `no-constant-binary-expression` error --- README.md | 1 + packages/basic/index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 3755f4f049..5ca3ae0fad 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/packages/basic/index.js b/packages/basic/index.js index 29a7203e94..edba06bd70 100644 --- a/packages/basic/index.js +++ b/packages/basic/index.js @@ -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'],