From 3cc05a28f2a784ce78ceb79fa1732b33c2b324a5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 May 2022 02:28:41 +0000 Subject: [PATCH 1/2] build(deps-dev): bump eslint from 8.12.0 to 8.14.0 Bumps [eslint](https://github.com/eslint/eslint) from 8.12.0 to 8.14.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.12.0...v8.14.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 18 +++++++++--------- package.json | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index fb401d5a..33f864d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,7 @@ "@eslint/eslintrc": "^1.2.2", "@tsconfig/node12": "^1.0.9", "@typescript-eslint/eslint-plugin": "^5.17.0", - "eslint": "^8.12.0", + "eslint": "^8.14.0", "eslint-find-rules": "^4.1.0", "eslint-plugin-jest": "^26.1.3", "jest": "^28.0.3", @@ -4657,11 +4657,11 @@ } }, "node_modules/eslint": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.12.0.tgz", - "integrity": "sha512-it1oBL9alZg1S8UycLm5YDMAkIhtH6FtAzuZs6YvoGVldWjbS08BkAdb/ymP9LlAyq8koANu32U7Ib/w+UNh8Q==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.14.0.tgz", + "integrity": "sha512-3/CE4aJX7LNEiE3i6FeodHmI/38GZtWCsAtsymScmzYapx8q1nVVb+eLcLSzATmCPXw5pT4TqVs1E0OmxAd9tw==", "dependencies": { - "@eslint/eslintrc": "^1.2.1", + "@eslint/eslintrc": "^1.2.2", "@humanwhocodes/config-array": "^0.9.2", "ajv": "^6.10.0", "chalk": "^4.0.0", @@ -17637,11 +17637,11 @@ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "eslint": { - "version": "8.12.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.12.0.tgz", - "integrity": "sha512-it1oBL9alZg1S8UycLm5YDMAkIhtH6FtAzuZs6YvoGVldWjbS08BkAdb/ymP9LlAyq8koANu32U7Ib/w+UNh8Q==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.14.0.tgz", + "integrity": "sha512-3/CE4aJX7LNEiE3i6FeodHmI/38GZtWCsAtsymScmzYapx8q1nVVb+eLcLSzATmCPXw5pT4TqVs1E0OmxAd9tw==", "requires": { - "@eslint/eslintrc": "^1.2.1", + "@eslint/eslintrc": "^1.2.2", "@humanwhocodes/config-array": "^0.9.2", "ajv": "^6.10.0", "chalk": "^4.0.0", diff --git a/package.json b/package.json index 086428cb..7764e797 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "@eslint/eslintrc": "^1.2.2", "@tsconfig/node12": "^1.0.9", "@typescript-eslint/eslint-plugin": "^5.17.0", - "eslint": "^8.12.0", + "eslint": "^8.14.0", "eslint-find-rules": "^4.1.0", "eslint-plugin-jest": "^26.1.3", "jest": "^28.0.3", From 75ed610e90e32a85fb03aa6d0da040e98a153154 Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Mon, 2 May 2022 13:36:44 +0900 Subject: [PATCH 2/2] feat(core): enable `no-constant-binary-expression` rule --- package-lock.json | 2 +- package.json | 2 +- rules/core.js | 1 + test/e2e.test.js | 2 -- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 29d81f49..c6d75d22 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37,7 +37,7 @@ }, "peerDependencies": { "@typescript-eslint/eslint-plugin": ">=5.13.0", - "eslint": ">=8.6.0" + "eslint": ">=8.14.0" }, "peerDependenciesMeta": { "@typescript-eslint/eslint-plugin": { diff --git a/package.json b/package.json index cfb1a59b..8af2dc0f 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ }, "peerDependencies": { "@typescript-eslint/eslint-plugin": ">=5.13.0", - "eslint": ">=8.6.0" + "eslint": ">=8.14.0" }, "peerDependenciesMeta": { "@typescript-eslint/eslint-plugin": { diff --git a/rules/core.js b/rules/core.js index 4e38d9a4..4131e002 100644 --- a/rules/core.js +++ b/rules/core.js @@ -48,6 +48,7 @@ module.exports = { "no-bitwise": "error", "no-caller": "error", "no-console": ["error", { allow: ["warn", "error"] }], + "no-constant-binary-expression": "error", "no-constructor-return": "error", "no-continue": "error", "no-div-regex": "off", diff --git a/test/e2e.test.js b/test/e2e.test.js index 98718523..74b1e3f7 100644 --- a/test/e2e.test.js +++ b/test/e2e.test.js @@ -20,8 +20,6 @@ const writeLintTargetFile = (content) => writeFileSync("test.js", `${content}${E const npmrc = ` progress=false loglevel=warn -cache-max=0 -cache-min=9999 `; let tarballPath;