@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/index.js CHANGED
@@ -9,12 +9,12 @@ import {
9
9
  hasTestingLibrary,
10
10
  hasTypescript,
11
11
  hasVitest
12
- } from "./chunk-OCS4JNPP.js";
12
+ } from "./chunk-7RIW3P47.js";
13
13
  import {
14
14
  GLOB_CJS,
15
15
  GLOB_IGNORES,
16
16
  GLOB_TESTS
17
- } from "./chunk-N5KZEOXT.js";
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-M6XXI2FU.js")),
586
- isReactEnabled && unwrap(import("./react-6ERTZG2I.js")),
587
- isTanstackQueryEnabled && unwrap(import("./tanstack-query-QBZ3MKQ7.js")),
588
- isAstroEnabled && unwrap(import("./astro-Z5RFF624.js")),
589
- isJestEnabled && unwrap(import("./jest-7NR7TDOP.js")),
590
- isVitestEnabled && unwrap(import("./vitest-726PXOPS.js")),
591
- isTestingLibraryEnabled && unwrap(import("./testing-library-HML5O6UC.js")),
592
- isPlaywrightEnabled && unwrap(import("./playwright-BIJ7HLQZ.js")),
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-7V464KOE.js"))
594
+ isNextjsEnabled && unwrap(import("./nextjs-XDBJZIHP.js"))
595
595
  ]);
596
596
  return [
597
597
  ...baseConfigs,
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  GLOB_E2E,
6
6
  GLOB_TESTS
7
- } from "./chunk-N5KZEOXT.js";
7
+ } from "./chunk-XMM6FHXC.js";
8
8
 
9
9
  // src/rules/jest.ts
10
10
  var jestRules = async () => {
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-72FT76PY.js";
7
7
  import {
8
8
  GLOB_NEXTJS
9
- } from "./chunk-N5KZEOXT.js";
9
+ } from "./chunk-XMM6FHXC.js";
10
10
 
11
11
  // src/rules/nextjs.ts
12
12
  var nextjsRules = async () => {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-72FT76PY.js";
4
4
  import {
5
5
  GLOB_PLAYWRIGHT
6
- } from "./chunk-N5KZEOXT.js";
6
+ } from "./chunk-XMM6FHXC.js";
7
7
 
8
8
  // src/rules/playwright.ts
9
9
  var playwrightRules = async () => {
@@ -5,14 +5,14 @@ import {
5
5
  hasNext,
6
6
  hasTypescript,
7
7
  hasVite
8
- } from "./chunk-OCS4JNPP.js";
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-N5KZEOXT.js";
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-N5KZEOXT.js";
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-N5KZEOXT.js";
7
+ } from "./chunk-XMM6FHXC.js";
8
8
 
9
9
  // src/rules/testing-library.ts
10
10
  var testingLibraryRules = async () => {
@@ -2,7 +2,7 @@ import {
2
2
  GLOB_JS,
3
3
  GLOB_JSX,
4
4
  GLOB_TESTS
5
- } from "./chunk-N5KZEOXT.js";
5
+ } from "./chunk-XMM6FHXC.js";
6
6
 
7
7
  // src/rules/typescript.ts
8
8
  var typescriptRules = {
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  GLOB_E2E,
6
6
  GLOB_TESTS
7
- } from "./chunk-N5KZEOXT.js";
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.18.0",
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.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",
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.34.1",
43
- "@typescript-eslint/utils": "^8.34.1",
44
- "@vitest/eslint-plugin": "^1.2.7",
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.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.3.4",
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",
@@ -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.2.0",
64
+ "globals": "^16.3.0",
65
65
  "local-pkg": "^1.1.1",
66
- "typescript-eslint": "^8.34.1"
66
+ "typescript-eslint": "^8.36.0"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "eslint": "^9.10.0"