@jimmy.codes/eslint-config 5.15.0 → 5.17.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/index.js CHANGED
@@ -167,6 +167,8 @@ var additionalRules = {
167
167
  // Flags unintended use of `${}` inside strings without backticks
168
168
  "no-throw-literal": "error",
169
169
  // Prevents throwing non-error objects (e.g., `throw "error"` should be `throw new Error("error")`)
170
+ "no-unassigned-vars": "error",
171
+ // Disallow let or var variables that are read but never assigned
170
172
  "no-unmodified-loop-condition": "error",
171
173
  // Ensures loop conditions change, preventing infinite loops
172
174
  "no-unreachable-loop": "error",
@@ -585,8 +587,8 @@ var defineConfig = async ({
585
587
  isTanstackQueryEnabled && unwrap(import("./tanstack-query-QBZ3MKQ7.js")),
586
588
  isAstroEnabled && unwrap(import("./astro-Z5RFF624.js")),
587
589
  isJestEnabled && unwrap(import("./jest-7NR7TDOP.js")),
588
- isVitestEnabled && unwrap(import("./vitest-LSKPTQM4.js")),
589
- isTestingLibraryEnabled && unwrap(import("./testing-library-7RTMAEOX.js")),
590
+ isVitestEnabled && unwrap(import("./vitest-726PXOPS.js")),
591
+ isTestingLibraryEnabled && unwrap(import("./testing-library-HML5O6UC.js")),
590
592
  isPlaywrightEnabled && unwrap(import("./playwright-BIJ7HLQZ.js")),
591
593
  isStorybookEnabled && unwrap(import("./storybook-XHFO7L4T.js")),
592
594
  isNextjsEnabled && unwrap(import("./nextjs-7V464KOE.js"))
@@ -14,7 +14,8 @@ var testingLibraryRules = async () => {
14
14
  ]);
15
15
  return {
16
16
  ...testingLibrary.configs["flat/react"].rules,
17
- ...jestDom.configs["flat/recommended"].rules
17
+ ...jestDom.configs["flat/recommended"].rules,
18
+ "testing-library/no-test-id-queries": "error"
18
19
  };
19
20
  };
20
21
 
@@ -18,6 +18,7 @@ var vitestRules = async () => {
18
18
  withinDescribe: "it"
19
19
  }
20
20
  ],
21
+ "vitest/consistent-vitest-vi": "error",
21
22
  "vitest/no-alias-methods": "error",
22
23
  "vitest/no-commented-out-tests": "error",
23
24
  "vitest/no-conditional-in-test": "error",
package/package.json CHANGED
@@ -1,11 +1,20 @@
1
1
  {
2
2
  "name": "@jimmy.codes/eslint-config",
3
- "version": "5.15.0",
4
- "description": "A pragmatic and opinionated ESLint config for modern development.",
3
+ "version": "5.17.0",
4
+ "description": "A simple, modern ESLint config that covers most use cases.",
5
5
  "keywords": [
6
6
  "eslint",
7
7
  "eslint-config",
8
- "eslintconfig"
8
+ "typescript",
9
+ "react",
10
+ "nextjs",
11
+ "astro",
12
+ "vitest",
13
+ "tanstack-query",
14
+ "react-compiler",
15
+ "modern",
16
+ "opinionated",
17
+ "testing"
9
18
  ],
10
19
  "repository": {
11
20
  "type": "git",
@@ -24,39 +33,37 @@
24
33
  ],
25
34
  "dependencies": {
26
35
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
27
- "@eslint-react/eslint-plugin": "^1.50.0",
28
- "@eslint-react/kit": "^1.50.0",
29
- "@eslint-react/shared": "^1.50.0",
30
- "@eslint/js": "^9.28.0",
36
+ "@eslint-react/eslint-plugin": "^1.52.2",
37
+ "@eslint/js": "^9.29.0",
31
38
  "@next/eslint-plugin-next": "^15.3.3",
32
- "@stylistic/eslint-plugin": "^4.4.0",
39
+ "@stylistic/eslint-plugin": "^4.4.1",
33
40
  "@tanstack/eslint-plugin-query": "^5.78.0",
34
41
  "@types/eslint": "9.6.1",
35
- "@typescript-eslint/parser": "^8.33.1",
36
- "@typescript-eslint/utils": "^8.33.1",
37
- "@vitest/eslint-plugin": "^1.2.1",
42
+ "@typescript-eslint/parser": "^8.34.1",
43
+ "@typescript-eslint/utils": "^8.34.1",
44
+ "@vitest/eslint-plugin": "^1.2.7",
38
45
  "astro-eslint-parser": "^1.2.2",
39
46
  "eslint-config-prettier": "^10.1.5",
40
- "eslint-import-resolver-typescript": "^4.4.2",
47
+ "eslint-import-resolver-typescript": "^4.4.3",
41
48
  "eslint-plugin-astro": "^1.3.1",
42
- "eslint-plugin-import-x": "^4.15.0",
43
- "eslint-plugin-jest": "^28.12.0",
49
+ "eslint-plugin-import-x": "^4.15.2",
50
+ "eslint-plugin-jest": "^28.14.0",
44
51
  "eslint-plugin-jest-dom": "^5.5.0",
45
- "eslint-plugin-jsdoc": "^50.7.1",
52
+ "eslint-plugin-jsdoc": "^51.0.3",
46
53
  "eslint-plugin-jsx-a11y": "^6.10.2",
47
- "eslint-plugin-n": "^17.19.0",
48
- "eslint-plugin-perfectionist": "^4.13.0",
54
+ "eslint-plugin-n": "^17.20.0",
55
+ "eslint-plugin-perfectionist": "^4.15.0",
49
56
  "eslint-plugin-playwright": "^2.2.0",
50
57
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
51
58
  "eslint-plugin-react-hooks": "^5.2.0",
52
59
  "eslint-plugin-react-refresh": "0.4.20",
53
- "eslint-plugin-regexp": "^2.7.0",
60
+ "eslint-plugin-regexp": "^2.9.0",
54
61
  "eslint-plugin-storybook": "0.12.0",
55
- "eslint-plugin-testing-library": "^7.3.0",
62
+ "eslint-plugin-testing-library": "^7.5.3",
56
63
  "eslint-plugin-unicorn": "^59.0.1",
57
64
  "globals": "^16.2.0",
58
65
  "local-pkg": "^1.1.1",
59
- "typescript-eslint": "^8.33.1"
66
+ "typescript-eslint": "^8.34.1"
60
67
  },
61
68
  "peerDependencies": {
62
69
  "eslint": "^9.10.0"