@2digits/eslint-config 4.9.0 → 4.9.1

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +2 -5
  2. package/package.json +8 -8
package/dist/index.d.mts CHANGED
@@ -3522,7 +3522,6 @@ interface RuleOptions {
3522
3522
  * Validates against deriving values from state in an effect
3523
3523
  */
3524
3524
  'react-hooks/no-deriving-state-in-effects'?: Linter.RuleEntry<ReactHooksNoDerivingStateInEffects>;
3525
- 'react-hooks/no-unused-directives'?: Linter.RuleEntry<ReactHooksNoUnusedDirectives>;
3526
3525
  /**
3527
3526
  * 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)
3528
3527
  */
@@ -9834,12 +9833,14 @@ type NoRestrictedImports = ((string | {
9834
9833
  message?: string;
9835
9834
  importNames?: string[];
9836
9835
  allowImportNames?: string[];
9836
+ allowTypeImports?: boolean;
9837
9837
  })[] | [] | [{
9838
9838
  paths?: (string | {
9839
9839
  name: string;
9840
9840
  message?: string;
9841
9841
  importNames?: string[];
9842
9842
  allowImportNames?: string[];
9843
+ allowTypeImports?: boolean;
9843
9844
  })[];
9844
9845
  patterns?: (string[] | ({
9845
9846
  [k: string]: unknown | undefined;
@@ -10546,10 +10547,6 @@ type ReactHooksMemoizedEffectDependencies = [] | [{
10546
10547
  type ReactHooksNoDerivingStateInEffects = [] | [{
10547
10548
  [k: string]: unknown | undefined;
10548
10549
  }];
10549
- // ----- react-hooks/no-unused-directives -----
10550
- type ReactHooksNoUnusedDirectives = [] | [{
10551
- [k: string]: unknown | undefined;
10552
- }];
10553
10550
  // ----- react-hooks/preserve-manual-memoization -----
10554
10551
  type ReactHooksPreserveManualMemoization = [] | [{
10555
10552
  [k: string]: unknown | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2digits/eslint-config",
3
- "version": "4.9.0",
3
+ "version": "4.9.1",
4
4
  "description": "Effortlessly enforce best practices and catch errors with this comprehensive ESLint configuration for TypeScript, featuring popular plugins like @typescript-eslint, eslint-plugin-react, and eslint-plugin-unicorn.",
5
5
  "homepage": "https://2d-configs.vercel.app/",
6
6
  "repository": {
@@ -30,7 +30,7 @@
30
30
  "@eslint-react/eslint-plugin": "2.0.6",
31
31
  "@eslint/compat": "1.4.0",
32
32
  "@eslint/css": "0.11.1",
33
- "@eslint/js": "9.36.0",
33
+ "@eslint/js": "9.37.0",
34
34
  "@eslint/markdown": "7.3.0",
35
35
  "@graphql-eslint/eslint-plugin": "4.4.0",
36
36
  "@next/eslint-plugin-next": "15.5.4",
@@ -48,12 +48,12 @@
48
48
  "eslint-plugin-depend": "1.3.1",
49
49
  "eslint-plugin-drizzle": "0.2.3",
50
50
  "eslint-plugin-github-action": "0.0.16",
51
- "eslint-plugin-jsdoc": "60.7.1",
52
- "eslint-plugin-jsonc": "2.20.1",
51
+ "eslint-plugin-jsdoc": "60.8.1",
52
+ "eslint-plugin-jsonc": "2.21.0",
53
53
  "eslint-plugin-n": "17.23.1",
54
54
  "eslint-plugin-pnpm": "1.2.0",
55
55
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
56
- "eslint-plugin-react-hooks": "6.1.0",
56
+ "eslint-plugin-react-hooks": "6.1.1",
57
57
  "eslint-plugin-regexp": "2.10.0",
58
58
  "eslint-plugin-sonarjs": "3.0.5",
59
59
  "eslint-plugin-storybook": "9.1.10",
@@ -69,14 +69,14 @@
69
69
  "tailwind-csstree": "0.1.4",
70
70
  "typescript-eslint": "8.45.0",
71
71
  "yaml-eslint-parser": "1.3.0",
72
- "@2digits/eslint-plugin": "3.1.24",
73
- "@2digits/constants": "1.1.10"
72
+ "@2digits/constants": "1.1.10",
73
+ "@2digits/eslint-plugin": "3.1.25"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@eslint/config-inspector": "1.3.0",
77
77
  "@types/react": "19.2.0",
78
78
  "dedent": "1.7.0",
79
- "eslint": "9.36.0",
79
+ "eslint": "9.37.0",
80
80
  "eslint-typegen": "2.3.0",
81
81
  "react": "19.2.0",
82
82
  "tinyexec": "1.0.1",