@2digits/eslint-config 4.13.0 → 4.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.
Files changed (2) hide show
  1. package/dist/index.d.mts +24 -18
  2. package/package.json +13 -13
package/dist/index.d.mts CHANGED
@@ -3353,6 +3353,7 @@ interface RuleOptions {
3353
3353
  /**
3354
3354
  * Disallow certain props on components.
3355
3355
  * @see https://eslint-react.xyz/docs/rules/no-forbidden-props
3356
+ * @deprecated
3356
3357
  */
3357
3358
  'react-extra/no-forbidden-props'?: Linter.RuleEntry<ReactExtraNoForbiddenProps>;
3358
3359
  /**
@@ -3474,7 +3475,7 @@ interface RuleOptions {
3474
3475
  * Prevents using referential-type values as default props in object destructuring.
3475
3476
  * @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
3476
3477
  */
3477
- 'react-extra/no-unstable-default-props'?: Linter.RuleEntry<[]>;
3478
+ 'react-extra/no-unstable-default-props'?: Linter.RuleEntry<ReactExtraNoUnstableDefaultProps>;
3478
3479
  /**
3479
3480
  * Warns unused class component methods and properties.
3480
3481
  * @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
@@ -7790,77 +7791,77 @@ interface RuleOptions {
7790
7791
  'yoda'?: Linter.RuleEntry<Yoda>;
7791
7792
  /**
7792
7793
  * Enforce consistent Zod array style
7793
- * @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/consistent-array-style.md
7794
+ * @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/array-style.md
7794
7795
  */
7795
7796
  'zod/array-style'?: Linter.RuleEntry<ZodArrayStyle>;
7796
7797
  /**
7797
7798
  * Enforce consistent source from Zod imports
7798
- * @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/consistent-import-source.md
7799
+ * @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/consistent-import-source.md
7799
7800
  */
7800
7801
  'zod/consistent-import-source'?: Linter.RuleEntry<ZodConsistentImportSource>;
7801
7802
  /**
7802
7803
  * Disallow usage of `z.any()` in Zod schemas
7803
- * @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/no-any.md
7804
+ * @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/no-any.md
7804
7805
  */
7805
7806
  'zod/no-any'?: Linter.RuleEntry<[]>;
7806
7807
  /**
7807
7808
  * Disallow usage of `z.custom()` without arguments
7808
- * @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/no-empty-custom-schema.md
7809
+ * @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/no-empty-custom-schema.md
7809
7810
  */
7810
7811
  'zod/no-empty-custom-schema'?: Linter.RuleEntry<[]>;
7811
7812
  /**
7812
7813
  * Disallow usage of `z.number().int()` as it is considered legacy
7813
- * @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/no-number-schema-with-int.md
7814
+ * @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/no-number-schema-with-int.md
7814
7815
  */
7815
7816
  'zod/no-number-schema-with-int'?: Linter.RuleEntry<[]>;
7816
7817
  /**
7817
7818
  * Disallow using both `.optional()` and `.default()` on the same Zod schema
7818
- * @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/no-optional-and-default-together.md
7819
+ * @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/no-optional-and-default-together.md
7819
7820
  */
7820
7821
  'zod/no-optional-and-default-together'?: Linter.RuleEntry<ZodNoOptionalAndDefaultTogether>;
7821
7822
  /**
7822
7823
  * Disallow throwing errors directly inside Zod refine callbacks
7823
- * @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/no-throw-in-refine.md
7824
+ * @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/no-throw-in-refine.md
7824
7825
  */
7825
7826
  'zod/no-throw-in-refine'?: Linter.RuleEntry<[]>;
7826
7827
  /**
7827
7828
  * Enforce usage of `.meta()` over `.describe()`
7828
- * @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/prefer-meta.md
7829
+ * @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/prefer-meta.md
7829
7830
  */
7830
7831
  'zod/prefer-meta'?: Linter.RuleEntry<[]>;
7831
7832
  /**
7832
7833
  * Enforce `.meta()` as last method
7833
- * @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/prefer-meta-last.md
7834
+ * @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/prefer-meta-last.md
7834
7835
  */
7835
7836
  'zod/prefer-meta-last'?: Linter.RuleEntry<[]>;
7836
7837
  /**
7837
7838
  * Enforce importing zod as a namespace import (`import * as z from 'zod'`)
7838
- * @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/prefer-namespace-import.md
7839
+ * @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/prefer-namespace-import.md
7839
7840
  */
7840
7841
  'zod/prefer-namespace-import'?: Linter.RuleEntry<[]>;
7841
7842
  /**
7842
7843
  * Enforce usage of `.strictObject()` over `.object()` and/or `.looseObject()`
7843
- * @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/prefer-strict-object.md
7844
+ * @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/prefer-strict-object.md
7844
7845
  */
7845
7846
  'zod/prefer-strict-object'?: Linter.RuleEntry<ZodPreferStrictObject>;
7846
7847
  /**
7847
7848
  * Require type parameter on `.brand()` functions
7848
- * @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/require-brand-type-parameter.md
7849
+ * @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/require-brand-type-parameter.md
7849
7850
  */
7850
7851
  'zod/require-brand-type-parameter'?: Linter.RuleEntry<[]>;
7851
7852
  /**
7852
7853
  * Enforce that custom refinements include an error message
7853
- * @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/require-error-message.md
7854
+ * @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/require-error-message.md
7854
7855
  */
7855
7856
  'zod/require-error-message'?: Linter.RuleEntry<[]>;
7856
7857
  /**
7857
7858
  * Require schema suffix when declaring a Zod schema
7858
- * @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/require-schema-suffix.md
7859
+ * @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/require-schema-suffix.md
7859
7860
  */
7860
7861
  'zod/require-schema-suffix'?: Linter.RuleEntry<ZodRequireSchemaSuffix>;
7861
7862
  /**
7862
7863
  * Enforce consistent style for error messages in Zod schema validation (using ESQuery patterns)
7863
- * @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/consistent-import-source.md
7864
+ * @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/schema-error-property-style.md
7864
7865
  */
7865
7866
  'zod/schema-error-property-style'?: Linter.RuleEntry<ZodSchemaErrorPropertyStyle>;
7866
7867
  }
@@ -9212,6 +9213,9 @@ type JsdocSortTags = [] | [{
9212
9213
  linesBetween?: number;
9213
9214
  reportIntraTagGroupSpacing?: boolean;
9214
9215
  reportTagGroupSpacing?: boolean;
9216
+ tagExceptions?: {
9217
+ [k: string]: number;
9218
+ };
9215
9219
  tagSequence?: {
9216
9220
  tags?: string[];
9217
9221
  }[];
@@ -10999,6 +11003,10 @@ type ReactExtraNoForbiddenProps = [] | [{
10999
11003
  prop: string;
11000
11004
  })[];
11001
11005
  }];
11006
+ // ----- react-extra/no-unstable-default-props -----
11007
+ type ReactExtraNoUnstableDefaultProps = [] | [{
11008
+ safeDefaultProps?: string[];
11009
+ }];
11002
11010
  // ----- react-extra/no-useless-fragment -----
11003
11011
  type ReactExtraNoUselessFragment = [] | [{
11004
11012
  allowExpressions?: boolean;
@@ -14213,7 +14221,6 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
14213
14221
  // ----- zod/array-style -----
14214
14222
  type ZodArrayStyle = [] | [{
14215
14223
  style?: ("function" | "method");
14216
- [k: string]: unknown | undefined;
14217
14224
  }];
14218
14225
  // ----- zod/consistent-import-source -----
14219
14226
  type ZodConsistentImportSource = [] | [{
@@ -14226,7 +14233,6 @@ type ZodNoOptionalAndDefaultTogether = [] | [{
14226
14233
  // ----- zod/prefer-strict-object -----
14227
14234
  type ZodPreferStrictObject = [] | [{
14228
14235
  allow?: ("object" | "looseObject")[];
14229
- [k: string]: unknown | undefined;
14230
14236
  }];
14231
14237
  // ----- zod/require-schema-suffix -----
14232
14238
  type ZodRequireSchemaSuffix = [] | [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2digits/eslint-config",
3
- "version": "4.13.0",
3
+ "version": "4.13.2",
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": {
@@ -27,18 +27,18 @@
27
27
  "public": true,
28
28
  "dependencies": {
29
29
  "@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
30
- "@eslint-react/eslint-plugin": "2.3.1",
30
+ "@eslint-react/eslint-plugin": "2.3.5",
31
31
  "@eslint/compat": "1.4.1",
32
32
  "@eslint/css": "0.14.1",
33
33
  "@eslint/js": "9.39.1",
34
34
  "@eslint/markdown": "7.5.1",
35
35
  "@graphql-eslint/eslint-plugin": "4.4.0",
36
- "@next/eslint-plugin-next": "16.0.1",
36
+ "@next/eslint-plugin-next": "16.0.2",
37
37
  "@stylistic/eslint-plugin": "5.5.0",
38
38
  "@tanstack/eslint-plugin-query": "5.91.2",
39
39
  "@tanstack/eslint-plugin-router": "1.133.19",
40
- "@typescript-eslint/parser": "8.46.3",
41
- "@typescript-eslint/utils": "8.46.3",
40
+ "@typescript-eslint/parser": "8.46.4",
41
+ "@typescript-eslint/utils": "8.46.4",
42
42
  "empathic": "2.0.0",
43
43
  "eslint-config-flat-gitignore": "2.1.0",
44
44
  "eslint-config-prettier": "10.1.8",
@@ -46,10 +46,10 @@
46
46
  "eslint-merge-processors": "2.0.0",
47
47
  "eslint-plugin-antfu": "3.1.1",
48
48
  "eslint-plugin-de-morgan": "2.0.0",
49
- "eslint-plugin-depend": "1.3.1",
49
+ "eslint-plugin-depend": "1.4.0",
50
50
  "eslint-plugin-drizzle": "0.2.3",
51
51
  "eslint-plugin-github-action": "0.0.16",
52
- "eslint-plugin-jsdoc": "61.1.12",
52
+ "eslint-plugin-jsdoc": "61.2.0",
53
53
  "eslint-plugin-jsonc": "2.21.0",
54
54
  "eslint-plugin-n": "17.23.1",
55
55
  "eslint-plugin-pnpm": "1.3.0",
@@ -57,26 +57,26 @@
57
57
  "eslint-plugin-react-hooks": "7.0.1",
58
58
  "eslint-plugin-regexp": "2.10.0",
59
59
  "eslint-plugin-sonarjs": "3.0.5",
60
- "eslint-plugin-storybook": "10.0.6",
60
+ "eslint-plugin-storybook": "10.0.7",
61
61
  "eslint-plugin-tailwindcss": "3.18.2",
62
- "eslint-plugin-turbo": "2.6.0",
62
+ "eslint-plugin-turbo": "2.6.1",
63
63
  "eslint-plugin-unicorn": "62.0.0",
64
64
  "eslint-plugin-yml": "1.19.0",
65
- "eslint-plugin-zod-x": "1.8.0",
65
+ "eslint-plugin-zod-x": "1.8.2",
66
66
  "globals": "16.5.0",
67
67
  "graphql-config": "5.1.5",
68
68
  "jsonc-eslint-parser": "2.4.1",
69
69
  "local-pkg": "1.1.2",
70
70
  "pkg-types": "2.3.0",
71
71
  "tailwind-csstree": "0.1.4",
72
- "typescript-eslint": "8.46.3",
72
+ "typescript-eslint": "8.46.4",
73
73
  "yaml-eslint-parser": "1.3.0",
74
74
  "@2digits/constants": "1.1.10",
75
- "@2digits/eslint-plugin": "3.2.3"
75
+ "@2digits/eslint-plugin": "3.2.4"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@eslint/config-inspector": "1.3.0",
79
- "@types/react": "19.2.2",
79
+ "@types/react": "19.2.4",
80
80
  "dedent": "1.7.0",
81
81
  "eslint": "9.39.1",
82
82
  "eslint-typegen": "2.3.0",