@jimmy.codes/eslint-config 5.18.1 → 5.20.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
@@ -584,14 +584,14 @@ var defineConfig = async ({
584
584
  const featureConfigs = await Promise.all([
585
585
  isTypescriptEnabled && unwrap(import("./typescript-PLNEW3M4.js")),
586
586
  isReactEnabled && unwrap(import("./react-IAR3MTFF.js")),
587
- isTanstackQueryEnabled && unwrap(import("./tanstack-query-UVHLN4ZE.js")),
587
+ isTanstackQueryEnabled && unwrap(import("./tanstack-query-MM3M2QJO.js")),
588
588
  isAstroEnabled && unwrap(import("./astro-NEJ73UBN.js")),
589
589
  isJestEnabled && unwrap(import("./jest-SCRGNX6Z.js")),
590
- isVitestEnabled && unwrap(import("./vitest-HDDBP6E3.js")),
590
+ isVitestEnabled && unwrap(import("./vitest-IAENZQ7B.js")),
591
591
  isTestingLibraryEnabled && unwrap(import("./testing-library-QHZMYCZH.js")),
592
592
  isPlaywrightEnabled && unwrap(import("./playwright-2HMMFF3D.js")),
593
593
  isStorybookEnabled && unwrap(import("./storybook-XHFO7L4T.js")),
594
- isNextjsEnabled && unwrap(import("./nextjs-XDBJZIHP.js"))
594
+ isNextjsEnabled && unwrap(import("./nextjs-CRRBTFXP.js"))
595
595
  ]);
596
596
  return [
597
597
  ...baseConfigs,
@@ -11,7 +11,10 @@ import {
11
11
  // src/rules/nextjs.ts
12
12
  var nextjsRules = async () => {
13
13
  const nextjsPlugin = await interopDefault(import("@next/eslint-plugin-next"));
14
- return upwarn(nextjsPlugin.configs.recommended.rules);
14
+ return upwarn(
15
+ // @next/eslint-plugin-next types for each rule use string instead of Linter.RuleLevel,
16
+ nextjsPlugin.configs.recommended.rules
17
+ );
15
18
  };
16
19
 
17
20
  // src/configs/nextjs.ts
@@ -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",
@@ -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.18.1",
3
+ "version": "5.20.0",
4
4
  "description": "A simple, modern ESLint config that covers most use cases.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -33,25 +33,25 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
36
- "@eslint-react/eslint-plugin": "^1.52.2",
37
- "@eslint/js": "^9.29.0",
38
- "@next/eslint-plugin-next": "^15.3.3",
39
- "@stylistic/eslint-plugin": "^4.4.1",
40
- "@tanstack/eslint-plugin-query": "^5.78.0",
36
+ "@eslint-react/eslint-plugin": "^1.52.3",
37
+ "@eslint/js": "^9.31.0",
38
+ "@next/eslint-plugin-next": "^15.4.1",
39
+ "@stylistic/eslint-plugin": "^5.2.0",
40
+ "@tanstack/eslint-plugin-query": "^5.81.2",
41
41
  "@types/eslint": "9.6.1",
42
- "@typescript-eslint/parser": "^8.34.1",
43
- "@typescript-eslint/utils": "^8.34.1",
44
- "@vitest/eslint-plugin": "^1.2.7",
42
+ "@typescript-eslint/parser": "^8.37.0",
43
+ "@typescript-eslint/utils": "^8.37.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.3",
47
+ "eslint-import-resolver-typescript": "^4.4.4",
48
48
  "eslint-plugin-astro": "^1.3.1",
49
- "eslint-plugin-import-x": "^4.15.2",
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.0.3",
52
+ "eslint-plugin-jsdoc": "^51.4.1",
53
53
  "eslint-plugin-jsx-a11y": "^6.10.2",
54
- "eslint-plugin-n": "^17.20.0",
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",
@@ -59,11 +59,11 @@
59
59
  "eslint-plugin-react-refresh": "0.4.20",
60
60
  "eslint-plugin-regexp": "^2.9.0",
61
61
  "eslint-plugin-storybook": "0.12.0",
62
- "eslint-plugin-testing-library": "^7.5.3",
62
+ "eslint-plugin-testing-library": "^7.6.0",
63
63
  "eslint-plugin-unicorn": "^59.0.1",
64
- "globals": "^16.2.0",
64
+ "globals": "^16.3.0",
65
65
  "local-pkg": "^1.1.1",
66
- "typescript-eslint": "^8.34.1"
66
+ "typescript-eslint": "^8.37.0"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "eslint": "^9.10.0"