@jimmy.codes/eslint-config 6.17.1 → 6.18.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
@@ -151,6 +151,7 @@ This config includes the following plugins:
151
151
  | [`@tanstack/eslint-plugin-query`](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query) | TanStack Query rules |
152
152
  | [`@vitest/eslint-plugin`](https://github.com/vitest-dev/eslint-plugin-vitest) | Vitest support |
153
153
  | [`eslint-config-prettier`](https://github.com/prettier/eslint-config-prettier) | Disable formatting conflicts |
154
+ | [`eslint-plugin-arrow-return-style-x`](https://github.com/christopher-buss/eslint-plugin-arrow-return-style-x) | Arrow function return style |
154
155
  | [`eslint-plugin-astro`](https://ota-meshi.github.io/eslint-plugin-astro/) | Astro framework support |
155
156
  | [`eslint-plugin-import-x`](https://github.com/un-ts/eslint-plugin-import-x) | Import order and hygiene |
156
157
  | [`eslint-plugin-jest`](https://github.com/jest-community/eslint-plugin-jest) | Jest support |
package/dist/index.d.mts CHANGED
@@ -311,6 +311,7 @@ interface RuleOptions {
311
311
  /**
312
312
  * Disallow certain props on components.
313
313
  * @see https://eslint-react.xyz/docs/rules/no-forbidden-props
314
+ * @deprecated
314
315
  */
315
316
  '@eslint-react/no-forbidden-props'?: Linter.RuleEntry<EslintReactNoForbiddenProps>;
316
317
  /**
@@ -432,7 +433,7 @@ interface RuleOptions {
432
433
  * Prevents using referential-type values as default props in object destructuring.
433
434
  * @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
434
435
  */
435
- '@eslint-react/no-unstable-default-props'?: Linter.RuleEntry<[]>;
436
+ '@eslint-react/no-unstable-default-props'?: Linter.RuleEntry<EslintReactNoUnstableDefaultProps>;
436
437
  /**
437
438
  * Warns unused class component methods and properties.
438
439
  * @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
@@ -7133,6 +7134,11 @@ interface RuleOptions {
7133
7134
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
7134
7135
  */
7135
7136
  'vitest/prefer-vi-mocked'?: Linter.RuleEntry<[]>;
7137
+ /**
7138
+ * ensure that every `expect.poll` call is awaited
7139
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-awaited-expect-poll.md
7140
+ */
7141
+ 'vitest/require-awaited-expect-poll'?: Linter.RuleEntry<[]>;
7136
7142
  /**
7137
7143
  * require setup and teardown to be within a hook
7138
7144
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
@@ -7259,6 +7265,10 @@ type EslintReactNoForbiddenProps = [] | [{
7259
7265
  prop: string;
7260
7266
  })[];
7261
7267
  }];
7268
+ // ----- @eslint-react/no-unstable-default-props -----
7269
+ type EslintReactNoUnstableDefaultProps = [] | [{
7270
+ safeDefaultProps?: string[];
7271
+ }];
7262
7272
  // ----- @eslint-react/no-useless-fragment -----
7263
7273
  type EslintReactNoUselessFragment = [] | [{
7264
7274
  allowExpressions?: boolean;
@@ -14853,7 +14863,7 @@ type VitestNoFocusedTests = [] | [{
14853
14863
  }];
14854
14864
  // ----- vitest/no-hooks -----
14855
14865
  type VitestNoHooks = [] | [{
14856
- allow?: unknown[];
14866
+ allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach")[];
14857
14867
  }];
14858
14868
  // ----- vitest/no-large-snapshots -----
14859
14869
  type VitestNoLargeSnapshots = [] | [{
package/dist/index.mjs CHANGED
@@ -492,7 +492,7 @@ const defineConfig = async ({ astro = false, autoDetect = true, gitignore = fals
492
492
  isTanstackQueryEnabled && unwrap(import("./tanstack-query-NIpT7cxZ.mjs")),
493
493
  isAstroEnabled && unwrap(import("./astro-BQtDqyG3.mjs")),
494
494
  isJestEnabled && unwrap(import("./jest-CErT1V1O.mjs")),
495
- isVitestEnabled && unwrap(import("./vitest-C7UPbZQL.mjs")),
495
+ isVitestEnabled && unwrap(import("./vitest-BLlFhoFJ.mjs")),
496
496
  isTestingLibraryEnabled && unwrap(import("./testing-library-CK_eSFw4.mjs")),
497
497
  isPlaywrightEnabled && unwrap(import("./playwright-BVt20EDw.mjs")),
498
498
  isStorybookEnabled && unwrap(import("./storybook-DNFUDICT.mjs")),
@@ -51,6 +51,7 @@ const vitestRules = async () => {
51
51
  "vitest/prefer-to-have-length": "error",
52
52
  "vitest/prefer-todo": "warn",
53
53
  "vitest/prefer-vi-mocked": "error",
54
+ "vitest/require-awaited-expect-poll": "error",
54
55
  "vitest/require-hook": "error",
55
56
  "vitest/require-to-throw-message": "error",
56
57
  "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.17.1",
3
+ "version": "6.18.0",
4
4
  "description": "A simple, modern ESLint config that covers most use cases.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -40,7 +40,7 @@
40
40
  ],
41
41
  "dependencies": {
42
42
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
43
- "@eslint-react/eslint-plugin": "^2.3.1",
43
+ "@eslint-react/eslint-plugin": "^2.3.4",
44
44
  "@eslint/js": "^9.39.1",
45
45
  "@next/eslint-plugin-next": "^15.5.6",
46
46
  "@stylistic/eslint-plugin": "^5.5.0",
@@ -48,7 +48,7 @@
48
48
  "@types/eslint": "9.6.1",
49
49
  "@typescript-eslint/parser": "^8.46.3",
50
50
  "@typescript-eslint/utils": "^8.46.3",
51
- "@vitest/eslint-plugin": "^1.4.1",
51
+ "@vitest/eslint-plugin": "^1.4.2",
52
52
  "astro-eslint-parser": "^1.2.2",
53
53
  "eslint-config-flat-gitignore": "^2.1.0",
54
54
  "eslint-config-prettier": "^10.1.8",
@@ -64,12 +64,12 @@
64
64
  "eslint-plugin-perfectionist": "^4.15.1",
65
65
  "eslint-plugin-playwright": "^2.3.0",
66
66
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
67
- "eslint-plugin-react-dom": "^2.3.1",
67
+ "eslint-plugin-react-dom": "^2.3.4",
68
68
  "eslint-plugin-react-hooks": "^7.0.1",
69
- "eslint-plugin-react-hooks-extra": "^2.3.1",
70
- "eslint-plugin-react-naming-convention": "^2.3.1",
69
+ "eslint-plugin-react-hooks-extra": "^2.3.4",
70
+ "eslint-plugin-react-naming-convention": "^2.3.4",
71
71
  "eslint-plugin-react-refresh": "0.4.24",
72
- "eslint-plugin-react-web-api": "^2.3.1",
72
+ "eslint-plugin-react-web-api": "^2.3.4",
73
73
  "eslint-plugin-regexp": "^2.10.0",
74
74
  "eslint-plugin-storybook": "0.12.0",
75
75
  "eslint-plugin-testing-library": "^7.13.3",