@jimmy.codes/eslint-config 6.7.0 → 6.8.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/README.md
CHANGED
|
@@ -10,14 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
A strict but practical ESLint config that works out of the box, adapts to your stack, and enforces good patterns without getting in the way. It catches real bugs, reduces ambiguity, and keeps your codebase consistent.
|
|
12
12
|
|
|
13
|
-
- **Auto-detects your stack**: React, TypeScript, Astro, Next.js, Vitest, Jest, Playwright, Storybook, and TanStack Query.
|
|
13
|
+
- **Auto-detects your stack**: React, TypeScript, Astro, Next.js, Vitest, Jest, Testing Library, Playwright, Storybook, and TanStack Query.
|
|
14
|
+
- **Zero-config start**: Install it, extend it, done.
|
|
14
15
|
- **Prevents real issues**: Prioritizes rules that catch bugs and unsafe patterns.
|
|
15
16
|
- **Prevents confusion**: Flags ambiguous code, confusing promise usage, shadowed variables, and unused exports.
|
|
16
17
|
- **Enforces consistency**: Standardizes imports, naming, coding style, and testing conventions.
|
|
17
|
-
- **
|
|
18
|
-
- **Zero-config start**: Install it, extend it, done.
|
|
19
|
-
- **Customizable**: Turn off or override rules per project or file.
|
|
20
|
-
- **Test-ready**: Works with Vitest, Jest, Playwright, and Testing Library.
|
|
18
|
+
- **Flexible**: Easily customize or disable any part of the config.
|
|
21
19
|
|
|
22
20
|
---
|
|
23
21
|
|
package/dist/index.js
CHANGED
|
@@ -481,10 +481,10 @@ const defineConfig = async ({ astro = false, autoDetect = true, gitignore = fals
|
|
|
481
481
|
isReactEnabled && unwrap(import("./react-DD9VDtyi.js")),
|
|
482
482
|
isTanstackQueryEnabled && unwrap(import("./tanstack-query-DqqVfxJs.js")),
|
|
483
483
|
isAstroEnabled && unwrap(import("./astro-Cc3Rxusf.js")),
|
|
484
|
-
isJestEnabled && unwrap(import("./jest-
|
|
485
|
-
isVitestEnabled && unwrap(import("./vitest-
|
|
484
|
+
isJestEnabled && unwrap(import("./jest-G-dRTY_j.js")),
|
|
485
|
+
isVitestEnabled && unwrap(import("./vitest-C38KvCT7.js")),
|
|
486
486
|
isTestingLibraryEnabled && unwrap(import("./testing-library-lJsmjyFo.js")),
|
|
487
|
-
isPlaywrightEnabled && unwrap(import("./playwright-
|
|
487
|
+
isPlaywrightEnabled && unwrap(import("./playwright-ywSmTTAR.js")),
|
|
488
488
|
isStorybookEnabled && unwrap(import("./storybook-BO4plVPp.js")),
|
|
489
489
|
isNextjsEnabled && unwrap(import("./nextjs-X6g9xH_I.js"))
|
|
490
490
|
]);
|
|
@@ -23,6 +23,7 @@ const jestRules = async () => {
|
|
|
23
23
|
"jest/no-restricted-matchers": "off",
|
|
24
24
|
"jest/no-test-return-statement": "error",
|
|
25
25
|
"jest/no-untyped-mock-factory": "off",
|
|
26
|
+
"jest/padding-around-all": "error",
|
|
26
27
|
"jest/prefer-called-with": "error",
|
|
27
28
|
"jest/prefer-comparison-matcher": "error",
|
|
28
29
|
"jest/prefer-each": "error",
|
|
@@ -31,6 +32,7 @@ const jestRules = async () => {
|
|
|
31
32
|
"jest/prefer-expect-resolves": "error",
|
|
32
33
|
"jest/prefer-hooks-in-order": "error",
|
|
33
34
|
"jest/prefer-hooks-on-top": "error",
|
|
35
|
+
"jest/prefer-jest-mocked": "error",
|
|
34
36
|
"jest/prefer-lowercase-title": "off",
|
|
35
37
|
"jest/prefer-mock-promise-shorthand": "error",
|
|
36
38
|
"jest/prefer-snapshot-hint": "error",
|
|
@@ -21,6 +21,12 @@ const playwrightRules = async () => {
|
|
|
21
21
|
"playwright/no-useless-not": "error",
|
|
22
22
|
"playwright/no-wait-for-selector": "error",
|
|
23
23
|
"playwright/no-wait-for-timeout": "error",
|
|
24
|
+
"playwright/prefer-strict-equal": "error",
|
|
25
|
+
"playwright/prefer-to-be": "error",
|
|
26
|
+
"playwright/prefer-to-contain": "error",
|
|
27
|
+
"playwright/prefer-to-have-count": "error",
|
|
28
|
+
"playwright/prefer-to-have-length": "error",
|
|
29
|
+
"playwright/require-to-throw-message": "error",
|
|
24
30
|
"playwright/valid-title": "off"
|
|
25
31
|
};
|
|
26
32
|
};
|
|
@@ -28,6 +28,7 @@ const vitestRules = async () => {
|
|
|
28
28
|
"vitest/no-standalone-expect": "error",
|
|
29
29
|
"vitest/no-test-prefixes": "error",
|
|
30
30
|
"vitest/no-test-return-statement": "error",
|
|
31
|
+
"vitest/padding-around-all": "error",
|
|
31
32
|
"vitest/prefer-called-once": "error",
|
|
32
33
|
"vitest/prefer-called-times": "off",
|
|
33
34
|
"vitest/prefer-called-with": "error",
|
|
@@ -49,6 +50,7 @@ const vitestRules = async () => {
|
|
|
49
50
|
"vitest/prefer-to-contain": "error",
|
|
50
51
|
"vitest/prefer-to-have-length": "error",
|
|
51
52
|
"vitest/prefer-todo": "warn",
|
|
53
|
+
"vitest/prefer-vi-mocked": "error",
|
|
52
54
|
"vitest/require-hook": "error",
|
|
53
55
|
"vitest/require-to-throw-message": "error",
|
|
54
56
|
"vitest/require-top-level-describe": "off",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jimmy.codes/eslint-config",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.0",
|
|
4
4
|
"description": "A simple, modern ESLint config that covers most use cases.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
43
|
-
"@eslint-react/eslint-plugin": "2.0.0-next.
|
|
43
|
+
"@eslint-react/eslint-plugin": "2.0.0-next.166",
|
|
44
44
|
"@eslint/js": "^9.34.0",
|
|
45
45
|
"@next/eslint-plugin-next": "^15.5.2",
|
|
46
46
|
"@stylistic/eslint-plugin": "^5.3.1",
|
|
47
|
-
"@tanstack/eslint-plugin-query": "^5.
|
|
47
|
+
"@tanstack/eslint-plugin-query": "^5.86.0",
|
|
48
48
|
"@types/eslint": "9.6.1",
|
|
49
49
|
"@typescript-eslint/parser": "^8.42.0",
|
|
50
50
|
"@typescript-eslint/utils": "^8.42.0",
|