Skip to content

Commit 2fb8d60

Browse files
authored
eslint-config-seekingalpha-tests ver. 4.47.0 (#583)
- [new] add sharable oxlint config with eslint-plugin-jest rules
1 parent df441ac commit 2fb8d60

7 files changed

Lines changed: 149 additions & 2 deletions

File tree

eslint-configs/eslint-config-seekingalpha-tests/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 4.47.0 - 2026-01-28
4+
5+
- [new] add sharable oxlint config with eslint-plugin-jest rules
6+
37
## 4.46.0 - 2026-01-04
48

59
- [deps] upgrade `eslint-plugin-jest` to version `29.12.1`
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { ESLintPluginJestDisabled } from './rules/eslint-plugin-jest/oxlint-disabled.js';
2+
3+
import config from './index.js';
4+
5+
const oxcConfig = {
6+
...config,
7+
rules: {
8+
...config.rules,
9+
...ESLintPluginJestDisabled,
10+
},
11+
};
12+
13+
export default oxcConfig;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"extends": ["./rules/eslint-plugin-jest/oxlint-config.json"]
4+
}

eslint-configs/eslint-config-seekingalpha-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-seekingalpha-tests",
3-
"version": "4.46.0",
3+
"version": "4.47.0",
44
"description": "SeekingAlpha's sharable testing ESLint config",
55
"main": "index.js",
66
"type": "module",
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["jest"],
4+
"rules": {
5+
"jest/consistent-test-it": "error",
6+
"jest/expect-expect": "error",
7+
"jest/max-expects": "off",
8+
"jest/prefer-each": "error",
9+
"jest/prefer-lowercase-title": "off",
10+
"jest/prefer-mock-promise-shorthand": "error",
11+
"jest/max-nested-describe": [
12+
"error",
13+
{
14+
"max": 2
15+
}
16+
],
17+
"jest/no-alias-methods": "error",
18+
"jest/no-commented-out-tests": "error",
19+
"jest/no-conditional-expect": "error",
20+
"jest/no-conditional-in-test": "error",
21+
"jest/no-confusing-set-timeout": "error",
22+
"jest/no-deprecated-functions": "error",
23+
"jest/no-disabled-tests": "error",
24+
"jest/no-duplicate-hooks": "error",
25+
"jest/no-export": "error",
26+
"jest/no-focused-tests": "error",
27+
"jest/no-hooks": "off",
28+
"jest/no-identical-title": "error",
29+
"jest/no-interpolation-in-snapshots": "error",
30+
"jest/no-jasmine-globals": "error",
31+
"jest/no-large-snapshots": [
32+
"error",
33+
{
34+
"maxSize": 50
35+
}
36+
],
37+
"jest/no-mocks-import": "off",
38+
"jest/no-restricted-matchers": [
39+
"error",
40+
{
41+
"toBeFalsy": "Use `toBe(false)` instead.",
42+
"toBeTruthy": "Use `toBe(true)` instead."
43+
}
44+
],
45+
"jest/no-standalone-expect": "error",
46+
"jest/no-done-callback": "error",
47+
"jest/no-restricted-jest-methods": "off",
48+
"jest/no-test-prefixes": "error",
49+
"jest/no-test-return-statement": "error",
50+
"jest/no-untyped-mock-factory": "off",
51+
"jest/prefer-called-with": "error",
52+
"jest/prefer-comparison-matcher": "error",
53+
"jest/prefer-equality-matcher": "error",
54+
"jest/prefer-expect-resolves": "error",
55+
"jest/prefer-hooks-in-order": "error",
56+
"jest/prefer-hooks-on-top": "error",
57+
"jest/prefer-jest-mocked": "error",
58+
"jest/prefer-spy-on": "error",
59+
"jest/prefer-strict-equal": "error",
60+
"jest/prefer-to-be": "error",
61+
"jest/prefer-to-contain": "error",
62+
"jest/prefer-to-have-been-called": "error",
63+
"jest/prefer-to-have-been-called-times": "error",
64+
"jest/prefer-to-have-length": "error",
65+
"jest/prefer-todo": "error",
66+
"jest/require-hook": "off",
67+
"jest/require-to-throw-message": "error",
68+
"jest/require-top-level-describe": "error",
69+
"jest/valid-describe-callback": "error",
70+
"jest/valid-expect": "error",
71+
"jest/valid-title": "error"
72+
}
73+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
export const ESLintPluginJestDisabled = {
2+
'jest/consistent-test-it': 'off',
3+
'jest/expect-expect': 'off',
4+
'jest/max-expects': 'off',
5+
'jest/prefer-each': 'off',
6+
'jest/prefer-lowercase-title': 'off',
7+
'jest/prefer-mock-promise-shorthand': 'off',
8+
'jest/max-nested-describe': 'off',
9+
'jest/no-alias-methods': 'off',
10+
'jest/no-commented-out-tests': 'off',
11+
'jest/no-conditional-expect': 'off',
12+
'jest/no-conditional-in-test': 'off',
13+
'jest/no-confusing-set-timeout': 'off',
14+
'jest/no-deprecated-functions': 'off',
15+
'jest/no-disabled-tests': 'off',
16+
'jest/no-duplicate-hooks': 'off',
17+
'jest/no-export': 'off',
18+
'jest/no-focused-tests': 'off',
19+
'jest/no-hooks': 'off',
20+
'jest/no-identical-title': 'off',
21+
'jest/no-interpolation-in-snapshots': 'off',
22+
'jest/no-jasmine-globals': 'off',
23+
'jest/no-large-snapshots': 'off',
24+
'jest/no-mocks-import': 'off',
25+
'jest/no-restricted-matchers': 'off',
26+
'jest/no-standalone-expect': 'off',
27+
'jest/no-done-callback': 'off',
28+
'jest/no-restricted-jest-methods': 'off',
29+
'jest/no-test-prefixes': 'off',
30+
'jest/no-test-return-statement': 'off',
31+
'jest/no-untyped-mock-factory': 'off',
32+
'jest/prefer-called-with': 'off',
33+
'jest/prefer-comparison-matcher': 'off',
34+
'jest/prefer-equality-matcher': 'off',
35+
'jest/prefer-expect-resolves': 'off',
36+
'jest/prefer-hooks-in-order': 'off',
37+
'jest/prefer-hooks-on-top': 'off',
38+
'jest/prefer-jest-mocked': 'off',
39+
'jest/prefer-spy-on': 'off',
40+
'jest/prefer-strict-equal': 'off',
41+
'jest/prefer-to-be': 'off',
42+
'jest/prefer-to-contain': 'off',
43+
'jest/prefer-to-have-been-called': 'off',
44+
'jest/prefer-to-have-been-called-times': 'off',
45+
'jest/prefer-to-have-length': 'off',
46+
'jest/prefer-todo': 'off',
47+
'jest/require-hook': 'off',
48+
'jest/require-to-throw-message': 'off',
49+
'jest/require-top-level-describe': 'off',
50+
'jest/valid-describe-callback': 'off',
51+
'jest/valid-expect': 'off',
52+
'jest/valid-title': 'off',
53+
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "seekingalpha-javascript-style",
3-
"version": "9.85.1",
3+
"version": "9.86.0",
44
"description": "Set of linting rules, guides and best practices for best Javascript code",
55
"main": "index.js",
66
"type": "module",

0 commit comments

Comments
 (0)