@jimmy.codes/eslint-config 6.13.0 → 6.13.2

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.d.ts CHANGED
@@ -5212,7 +5212,6 @@ interface RuleOptions {
5212
5212
  * Validates against deriving values from state in an effect
5213
5213
  */
5214
5214
  'react-hooks/no-deriving-state-in-effects'?: Linter.RuleEntry<ReactHooksNoDerivingStateInEffects>;
5215
- 'react-hooks/no-unused-directives'?: Linter.RuleEntry<ReactHooksNoUnusedDirectives>;
5216
5215
  /**
5217
5216
  * Validates that existing manual memoized is preserved by the compiler. React Compiler will only compile components and hooks if its inference [matches or exceeds the existing manual memoization](https://react.dev/learn/react-compiler/introduction#what-should-i-do-about-usememo-usecallback-and-reactmemo)
5218
5217
  */
@@ -11883,12 +11882,14 @@ type NoRestrictedImports = ((string | {
11883
11882
  message?: string;
11884
11883
  importNames?: string[];
11885
11884
  allowImportNames?: string[];
11885
+ allowTypeImports?: boolean;
11886
11886
  })[] | [] | [{
11887
11887
  paths?: (string | {
11888
11888
  name: string;
11889
11889
  message?: string;
11890
11890
  importNames?: string[];
11891
11891
  allowImportNames?: string[];
11892
+ allowTypeImports?: boolean;
11892
11893
  })[];
11893
11894
  patterns?: (string[] | ({
11894
11895
  [k: string]: unknown | undefined;
@@ -14070,10 +14071,6 @@ type ReactHooksMemoizedEffectDependencies = [] | [{
14070
14071
  type ReactHooksNoDerivingStateInEffects = [] | [{
14071
14072
  [k: string]: unknown | undefined;
14072
14073
  }];
14073
- // ----- react-hooks/no-unused-directives -----
14074
- type ReactHooksNoUnusedDirectives = [] | [{
14075
- [k: string]: unknown | undefined;
14076
- }];
14077
14074
  // ----- react-hooks/preserve-manual-memoization -----
14078
14075
  type ReactHooksPreserveManualMemoization = [] | [{
14079
14076
  [k: string]: unknown | undefined;
package/dist/index.js CHANGED
@@ -484,7 +484,7 @@ const defineConfig = async ({ astro = false, autoDetect = true, gitignore = fals
484
484
  ];
485
485
  const featureConfigs = await Promise.all([
486
486
  isTypescriptEnabled && unwrap(import("./typescript-D8AT5dEv.js")),
487
- isReactEnabled && unwrap(import("./react-CY7FziwW.js")),
487
+ isReactEnabled && unwrap(import("./react-By-ZN_z5.js")),
488
488
  isTanstackQueryEnabled && unwrap(import("./tanstack-query-DqqVfxJs.js")),
489
489
  isAstroEnabled && unwrap(import("./astro-Cc3Rxusf.js")),
490
490
  isJestEnabled && unwrap(import("./jest-G-dRTY_j.js")),
@@ -29,6 +29,7 @@ const reactRules = async () => {
29
29
  ...jsxA11yPlugin.flatConfigs.recommended.rules,
30
30
  ...upwarn(reactPluginRules),
31
31
  "@eslint-react/dom/no-string-style-prop": "error",
32
+ "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "off",
32
33
  "@eslint-react/jsx-key-before-spread": "error",
33
34
  "@eslint-react/jsx-shorthand-boolean": "error",
34
35
  "@eslint-react/jsx-shorthand-fragment": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jimmy.codes/eslint-config",
3
- "version": "6.13.0",
3
+ "version": "6.13.2",
4
4
  "description": "A simple, modern ESLint config that covers most use cases.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
43
43
  "@eslint-react/eslint-plugin": "^2.0.6",
44
- "@eslint/js": "^9.36.0",
44
+ "@eslint/js": "^9.37.0",
45
45
  "@next/eslint-plugin-next": "^15.5.4",
46
46
  "@stylistic/eslint-plugin": "^5.4.0",
47
47
  "@tanstack/eslint-plugin-query": "^5.91.0",
@@ -57,13 +57,13 @@
57
57
  "eslint-plugin-import-x": "^4.16.1",
58
58
  "eslint-plugin-jest": "^29.0.1",
59
59
  "eslint-plugin-jest-dom": "^5.5.0",
60
- "eslint-plugin-jsdoc": "^60.7.1",
60
+ "eslint-plugin-jsdoc": "^60.8.0",
61
61
  "eslint-plugin-jsx-a11y": "^6.10.2",
62
62
  "eslint-plugin-n": "^17.23.1",
63
- "eslint-plugin-perfectionist": "^4.15.0",
63
+ "eslint-plugin-perfectionist": "^4.15.1",
64
64
  "eslint-plugin-playwright": "^2.2.2",
65
65
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
66
- "eslint-plugin-react-hooks": "^6.1.0",
66
+ "eslint-plugin-react-hooks": "^6.1.1",
67
67
  "eslint-plugin-react-refresh": "0.4.23",
68
68
  "eslint-plugin-regexp": "^2.10.0",
69
69
  "eslint-plugin-storybook": "0.12.0",