From af63ee64c18db32a4b57325a74e94bf114471dbb Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sat, 23 Apr 2022 20:30:29 +0700 Subject: [PATCH] Add `no-constant-binary-expression` rule https://eslint.org/docs/rules/no-constant-binary-expression --- index.js | 1 + package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 262c331..2b85956 100644 --- a/index.js +++ b/index.js @@ -529,6 +529,7 @@ module.exports = { ], 'no-class-assign': 'error', 'no-const-assign': 'error', + 'no-constant-binary-expression': 'error', 'no-dupe-class-members': 'error', 'no-new-symbol': 'error', 'no-this-before-super': 'error', diff --git a/package.json b/package.json index 013defc..b108d2f 100644 --- a/package.json +++ b/package.json @@ -53,10 +53,10 @@ }, "devDependencies": { "ava": "^2.4.0", - "eslint": "^8.6.0", + "eslint": "^8.14.0", "is-plain-obj": "^3.0.0" }, "peerDependencies": { - "eslint": ">=8.6.0" + "eslint": ">=8.14.0" } }