@jimmy.codes/eslint-config 5.18.0 → 5.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{astro-Z5RFF624.js → astro-NEJ73UBN.js} +1 -1
- package/dist/{chunk-OCS4JNPP.js → chunk-7RIW3P47.js} +1 -1
- package/dist/{chunk-N5KZEOXT.js → chunk-XMM6FHXC.js} +2 -0
- package/dist/index.d.ts +202 -169
- package/dist/index.js +11 -11
- package/dist/{jest-7NR7TDOP.js → jest-SCRGNX6Z.js} +1 -1
- package/dist/{nextjs-7V464KOE.js → nextjs-XDBJZIHP.js} +1 -1
- package/dist/{playwright-BIJ7HLQZ.js → playwright-2HMMFF3D.js} +1 -1
- package/dist/{react-6ERTZG2I.js → react-IAR3MTFF.js} +2 -2
- package/dist/{tanstack-query-QBZ3MKQ7.js → tanstack-query-MM3M2QJO.js} +2 -1
- package/dist/{testing-library-HML5O6UC.js → testing-library-QHZMYCZH.js} +1 -1
- package/dist/{typescript-M6XXI2FU.js → typescript-PLNEW3M4.js} +1 -1
- package/dist/{vitest-726PXOPS.js → vitest-IAENZQ7B.js} +5 -6
- package/package.json +14 -14
package/dist/index.js
CHANGED
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
hasTestingLibrary,
|
|
10
10
|
hasTypescript,
|
|
11
11
|
hasVitest
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7RIW3P47.js";
|
|
13
13
|
import {
|
|
14
14
|
GLOB_CJS,
|
|
15
15
|
GLOB_IGNORES,
|
|
16
16
|
GLOB_TESTS
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XMM6FHXC.js";
|
|
18
18
|
|
|
19
19
|
// src/configs/commonjs.ts
|
|
20
20
|
import globals from "globals";
|
|
@@ -582,16 +582,16 @@ var defineConfig = async ({
|
|
|
582
582
|
stylisticConfig()
|
|
583
583
|
];
|
|
584
584
|
const featureConfigs = await Promise.all([
|
|
585
|
-
isTypescriptEnabled && unwrap(import("./typescript-
|
|
586
|
-
isReactEnabled && unwrap(import("./react-
|
|
587
|
-
isTanstackQueryEnabled && unwrap(import("./tanstack-query-
|
|
588
|
-
isAstroEnabled && unwrap(import("./astro-
|
|
589
|
-
isJestEnabled && unwrap(import("./jest-
|
|
590
|
-
isVitestEnabled && unwrap(import("./vitest-
|
|
591
|
-
isTestingLibraryEnabled && unwrap(import("./testing-library-
|
|
592
|
-
isPlaywrightEnabled && unwrap(import("./playwright-
|
|
585
|
+
isTypescriptEnabled && unwrap(import("./typescript-PLNEW3M4.js")),
|
|
586
|
+
isReactEnabled && unwrap(import("./react-IAR3MTFF.js")),
|
|
587
|
+
isTanstackQueryEnabled && unwrap(import("./tanstack-query-MM3M2QJO.js")),
|
|
588
|
+
isAstroEnabled && unwrap(import("./astro-NEJ73UBN.js")),
|
|
589
|
+
isJestEnabled && unwrap(import("./jest-SCRGNX6Z.js")),
|
|
590
|
+
isVitestEnabled && unwrap(import("./vitest-IAENZQ7B.js")),
|
|
591
|
+
isTestingLibraryEnabled && unwrap(import("./testing-library-QHZMYCZH.js")),
|
|
592
|
+
isPlaywrightEnabled && unwrap(import("./playwright-2HMMFF3D.js")),
|
|
593
593
|
isStorybookEnabled && unwrap(import("./storybook-XHFO7L4T.js")),
|
|
594
|
-
isNextjsEnabled && unwrap(import("./nextjs-
|
|
594
|
+
isNextjsEnabled && unwrap(import("./nextjs-XDBJZIHP.js"))
|
|
595
595
|
]);
|
|
596
596
|
return [
|
|
597
597
|
...baseConfigs,
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
hasNext,
|
|
6
6
|
hasTypescript,
|
|
7
7
|
hasVite
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7RIW3P47.js";
|
|
9
9
|
import {
|
|
10
10
|
interopDefault
|
|
11
11
|
} from "./chunk-72FT76PY.js";
|
|
12
12
|
import {
|
|
13
13
|
GLOB_JSX,
|
|
14
14
|
GLOB_TSX
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-XMM6FHXC.js";
|
|
16
16
|
|
|
17
17
|
// src/configs/react.ts
|
|
18
18
|
import globals from "globals";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
GLOB_JSX,
|
|
6
6
|
GLOB_TSX
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XMM6FHXC.js";
|
|
8
8
|
|
|
9
9
|
// src/configs/tanstack-query.ts
|
|
10
10
|
async function tanstackQueryConfig() {
|
|
@@ -21,6 +21,7 @@ async function tanstackQueryConfig() {
|
|
|
21
21
|
rules: {
|
|
22
22
|
"@tanstack/query/exhaustive-deps": "error",
|
|
23
23
|
"@tanstack/query/infinite-query-property-order": "error",
|
|
24
|
+
"@tanstack/query/mutation-property-order": "error",
|
|
24
25
|
"@tanstack/query/no-rest-destructuring": "error",
|
|
25
26
|
"@tanstack/query/no-unstable-deps": "error",
|
|
26
27
|
"@tanstack/query/no-void-query-fn": "error",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
GLOB_E2E,
|
|
6
6
|
GLOB_TESTS
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XMM6FHXC.js";
|
|
8
8
|
|
|
9
9
|
// src/rules/vitest.ts
|
|
10
10
|
var vitestRules = async () => {
|
|
@@ -22,16 +22,12 @@ var vitestRules = async () => {
|
|
|
22
22
|
"vitest/no-alias-methods": "error",
|
|
23
23
|
"vitest/no-commented-out-tests": "error",
|
|
24
24
|
"vitest/no-conditional-in-test": "error",
|
|
25
|
-
// "vitest/no-confusing-set-timeout": "error", // missing
|
|
26
|
-
// "vitest/no-deprecated-functions": "error", // missing
|
|
27
25
|
"vitest/no-disabled-tests": "warn",
|
|
28
26
|
"vitest/no-duplicate-hooks": "error",
|
|
29
|
-
// "vitest/no-export": "error", // missing
|
|
30
27
|
"vitest/no-focused-tests": "error",
|
|
31
28
|
"vitest/no-hooks": "off",
|
|
32
29
|
"vitest/no-identical-title": "error",
|
|
33
30
|
"vitest/no-interpolation-in-snapshots": "error",
|
|
34
|
-
// "vitest/no-jasmine-globals": "error", // missing
|
|
35
31
|
"vitest/no-large-snapshots": "off",
|
|
36
32
|
"vitest/no-mocks-import": "error",
|
|
37
33
|
"vitest/no-restricted-matchers": "off",
|
|
@@ -39,6 +35,8 @@ var vitestRules = async () => {
|
|
|
39
35
|
"vitest/no-standalone-expect": "error",
|
|
40
36
|
"vitest/no-test-prefixes": "error",
|
|
41
37
|
"vitest/no-test-return-statement": "error",
|
|
38
|
+
"vitest/prefer-called-once": "error",
|
|
39
|
+
"vitest/prefer-called-times": "off",
|
|
42
40
|
// "vitest/no-untyped-mock-factory": "off", // requires typescript
|
|
43
41
|
"vitest/prefer-called-with": "error",
|
|
44
42
|
"vitest/prefer-comparison-matcher": "error",
|
|
@@ -71,7 +69,8 @@ var vitestRules = async () => {
|
|
|
71
69
|
it: "^should"
|
|
72
70
|
}
|
|
73
71
|
}
|
|
74
|
-
]
|
|
72
|
+
],
|
|
73
|
+
"vitest/warn-todo": "warn"
|
|
75
74
|
};
|
|
76
75
|
};
|
|
77
76
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jimmy.codes/eslint-config",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.19.0",
|
|
4
4
|
"description": "A simple, modern ESLint config that covers most use cases.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -34,24 +34,24 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
36
36
|
"@eslint-react/eslint-plugin": "^1.52.2",
|
|
37
|
-
"@eslint/js": "^9.
|
|
38
|
-
"@next/eslint-plugin-next": "^15.3.
|
|
39
|
-
"@stylistic/eslint-plugin": "^
|
|
40
|
-
"@tanstack/eslint-plugin-query": "^5.
|
|
37
|
+
"@eslint/js": "^9.30.1",
|
|
38
|
+
"@next/eslint-plugin-next": "^15.3.5",
|
|
39
|
+
"@stylistic/eslint-plugin": "^5.1.0",
|
|
40
|
+
"@tanstack/eslint-plugin-query": "^5.81.2",
|
|
41
41
|
"@types/eslint": "9.6.1",
|
|
42
|
-
"@typescript-eslint/parser": "^8.
|
|
43
|
-
"@typescript-eslint/utils": "^8.
|
|
44
|
-
"@vitest/eslint-plugin": "^1.
|
|
42
|
+
"@typescript-eslint/parser": "^8.36.0",
|
|
43
|
+
"@typescript-eslint/utils": "^8.36.0",
|
|
44
|
+
"@vitest/eslint-plugin": "^1.3.4",
|
|
45
45
|
"astro-eslint-parser": "^1.2.2",
|
|
46
46
|
"eslint-config-prettier": "^10.1.5",
|
|
47
|
-
"eslint-import-resolver-typescript": "^4.4.
|
|
47
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
48
48
|
"eslint-plugin-astro": "^1.3.1",
|
|
49
|
-
"eslint-plugin-import-x": "^4.
|
|
49
|
+
"eslint-plugin-import-x": "^4.16.1",
|
|
50
50
|
"eslint-plugin-jest": "^29.0.1",
|
|
51
51
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
52
|
-
"eslint-plugin-jsdoc": "^51.
|
|
52
|
+
"eslint-plugin-jsdoc": "^51.3.4",
|
|
53
53
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
54
|
-
"eslint-plugin-n": "^17.
|
|
54
|
+
"eslint-plugin-n": "^17.21.0",
|
|
55
55
|
"eslint-plugin-perfectionist": "^4.15.0",
|
|
56
56
|
"eslint-plugin-playwright": "^2.2.0",
|
|
57
57
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"eslint-plugin-storybook": "0.12.0",
|
|
62
62
|
"eslint-plugin-testing-library": "^7.5.3",
|
|
63
63
|
"eslint-plugin-unicorn": "^59.0.1",
|
|
64
|
-
"globals": "^16.
|
|
64
|
+
"globals": "^16.3.0",
|
|
65
65
|
"local-pkg": "^1.1.1",
|
|
66
|
-
"typescript-eslint": "^8.
|
|
66
|
+
"typescript-eslint": "^8.36.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"eslint": "^9.10.0"
|