From 0b04d391596650b920ec0947d2ec9443f25c0653 Mon Sep 17 00:00:00 2001 From: Aleksey Kovalevsky Date: Mon, 22 Dec 2025 11:27:17 +0200 Subject: [PATCH] eslint-config-seekingalpha-tests ver. 4.42.0 - [deps] upgrade `eslint-plugin-jest` to version `29.9.0` - [deps] upgrade `eslint-plugin-testing-library` to version `7.15.2` --- .../CHANGELOG.md | 5 +++++ .../README.md | 2 +- .../package.json | 10 ++++----- .../rules/eslint-plugin-jest/index.js | 22 ++++++++++++++----- package.json | 2 +- 5 files changed, 28 insertions(+), 13 deletions(-) diff --git a/eslint-configs/eslint-config-seekingalpha-tests/CHANGELOG.md b/eslint-configs/eslint-config-seekingalpha-tests/CHANGELOG.md index a345f50a..3f411368 100644 --- a/eslint-configs/eslint-config-seekingalpha-tests/CHANGELOG.md +++ b/eslint-configs/eslint-config-seekingalpha-tests/CHANGELOG.md @@ -1,5 +1,10 @@ # Change Log +## 4.42.0 - 2025-12-22 + +- [deps] upgrade `eslint-plugin-jest` to version `29.9.0` +- [deps] upgrade `eslint-plugin-testing-library` to version `7.15.2` + ## 4.41.0 - 2025-12-17 - [deps] upgrade `eslint-plugin-testing-library` to version `7.15.1` diff --git a/eslint-configs/eslint-config-seekingalpha-tests/README.md b/eslint-configs/eslint-config-seekingalpha-tests/README.md index 72f0d9ca..bdade424 100644 --- a/eslint-configs/eslint-config-seekingalpha-tests/README.md +++ b/eslint-configs/eslint-config-seekingalpha-tests/README.md @@ -6,7 +6,7 @@ This package includes the shareable ESLint config used by [SeekingAlpha](https:/ Install ESLint and all [Peer Dependencies](https://nodejs.org/en/blog/npm/peer-dependencies/): - npm install eslint@9.39.2 eslint-plugin-jest@29.5.0 eslint-plugin-testing-library@7.15.1 --save-dev + npm install eslint@9.39.2 eslint-plugin-jest@29.9.0 eslint-plugin-testing-library@7.15.2 --save-dev Install SeekingAlpha shareable ESLint: diff --git a/eslint-configs/eslint-config-seekingalpha-tests/package.json b/eslint-configs/eslint-config-seekingalpha-tests/package.json index 155ecac9..939e8805 100644 --- a/eslint-configs/eslint-config-seekingalpha-tests/package.json +++ b/eslint-configs/eslint-config-seekingalpha-tests/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-seekingalpha-tests", - "version": "4.41.0", + "version": "4.42.0", "description": "SeekingAlpha's sharable testing ESLint config", "main": "index.js", "type": "module", @@ -40,13 +40,13 @@ }, "peerDependencies": { "eslint": "9.39.2", - "eslint-plugin-jest": "29.5.0", - "eslint-plugin-testing-library": "7.15.1" + "eslint-plugin-jest": "29.9.0", + "eslint-plugin-testing-library": "7.15.2" }, "devDependencies": { "eslint": "9.39.2", "eslint-find-rules": "5.0.0", - "eslint-plugin-jest": "29.5.0", - "eslint-plugin-testing-library": "7.15.1" + "eslint-plugin-jest": "29.9.0", + "eslint-plugin-testing-library": "7.15.2" } } diff --git a/eslint-configs/eslint-config-seekingalpha-tests/rules/eslint-plugin-jest/index.js b/eslint-configs/eslint-config-seekingalpha-tests/rules/eslint-plugin-jest/index.js index 4bafa652..3cb1b676 100644 --- a/eslint-configs/eslint-config-seekingalpha-tests/rules/eslint-plugin-jest/index.js +++ b/eslint-configs/eslint-config-seekingalpha-tests/rules/eslint-plugin-jest/index.js @@ -1,5 +1,19 @@ import pluginJest from 'eslint-plugin-jest'; +const RULES_REQUIRE_TS = { + // https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/no-error-equal.md + 'jest/no-error-equal': 'off', + + // https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/no-unnecessary-assertion.md + 'jest/no-unnecessary-assertion': 'off', + + // https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/unbound-method.md + 'jest/unbound-method': 'off', + + // https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/valid-expect-with-promise.md + 'jest/valid-expect-with-promise': 'off', +}; + export default { plugins: { jest: pluginJest, @@ -8,6 +22,8 @@ export default { rules: { // Jest Plugin https://github.com/jest-community/eslint-plugin-jest + ...RULES_REQUIRE_TS, + // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/consistent-test-it.md 'jest/consistent-test-it': 'error', @@ -197,11 +213,5 @@ export default { // https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/valid-title.md 'jest/valid-title': 'error', - - /* - * only relevant for TypeScript - * https://github.com/jest-community/eslint-plugin-jest/blob/main/docs/rules/unbound-method.md - */ - 'jest/unbound-method': 'off', }, }; diff --git a/package.json b/package.json index 379ed27d..b21765d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "seekingalpha-javascript-style", - "version": "9.69.0", + "version": "9.70.0", "description": "Set of linting rules, guides and best practices for best Javascript code", "main": "index.js", "type": "module",