@2digits/eslint-config 5.4.12 → 5.4.13

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 +29 -29
  2. package/package.json +9 -9
package/dist/index.d.mts CHANGED
@@ -8594,149 +8594,149 @@ interface RuleOptions {
8594
8594
  'yoda'?: Linter.RuleEntry<Yoda>;
8595
8595
  /**
8596
8596
  * Enforce consistent Zod array style
8597
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/array-style.md
8597
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/array-style.md
8598
8598
  */
8599
8599
  'zod/array-style'?: Linter.RuleEntry<ZodArrayStyle>;
8600
8600
  /**
8601
8601
  * Enforce a consistent import style for Zod
8602
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/consistent-import.md
8602
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/consistent-import.md
8603
8603
  */
8604
8604
  'zod/consistent-import'?: Linter.RuleEntry<ZodConsistentImport>;
8605
8605
  /**
8606
8606
  * Enforce consistent source from Zod imports
8607
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/consistent-import-source.md
8607
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/consistent-import-source.md
8608
8608
  */
8609
8609
  'zod/consistent-import-source'?: Linter.RuleEntry<ZodConsistentImportSource>;
8610
8610
  /**
8611
8611
  * Enforce consistent usage of Zod schema methods
8612
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/consistent-object-schema-type.md
8612
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/consistent-object-schema-type.md
8613
8613
  */
8614
8614
  'zod/consistent-object-schema-type'?: Linter.RuleEntry<ZodConsistentObjectSchemaType>;
8615
8615
  /**
8616
8616
  * Enforce consistent use of z.infer or z.output for schema type inference
8617
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/consistent-schema-output-type-style.md
8617
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/consistent-schema-output-type-style.md
8618
8618
  */
8619
8619
  'zod/consistent-schema-output-type-style'?: Linter.RuleEntry<ZodConsistentSchemaOutputTypeStyle>;
8620
8620
  /**
8621
8621
  * Enforce a consistent naming convention for Zod schema variables
8622
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/consistent-schema-var-name.md
8622
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/consistent-schema-var-name.md
8623
8623
  */
8624
8624
  'zod/consistent-schema-var-name'?: Linter.RuleEntry<ZodConsistentSchemaVarName>;
8625
8625
  /**
8626
8626
  * Disallow usage of `z.any()` in Zod schemas
8627
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/no-any-schema.md
8627
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/no-any-schema.md
8628
8628
  */
8629
8629
  'zod/no-any-schema'?: Linter.RuleEntry<[]>;
8630
8630
  /**
8631
8631
  * Disallow usage of `z.custom()` without arguments
8632
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/no-empty-custom-schema.md
8632
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/no-empty-custom-schema.md
8633
8633
  */
8634
8634
  'zod/no-empty-custom-schema'?: Linter.RuleEntry<[]>;
8635
8635
  /**
8636
8636
  * Disallow deprecated `z.number().finite()`. In Zod 4+ number schemas do not allow infinite values by default, so it is a no-op.
8637
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/no-number-schema-with-finite.md
8637
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/no-number-schema-with-finite.md
8638
8638
  */
8639
8639
  'zod/no-number-schema-with-finite'?: Linter.RuleEntry<[]>;
8640
8640
  /**
8641
8641
  * Disallow usage of `z.number().int()` as it is considered legacy
8642
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/no-number-schema-with-int.md
8642
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/no-number-schema-with-int.md
8643
8643
  */
8644
8644
  'zod/no-number-schema-with-int'?: Linter.RuleEntry<[]>;
8645
8645
  /**
8646
8646
  * Disallow using deprecated `isFinite` on a Zod number schema; in v4+ it is always `true`.
8647
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/no-number-schema-with-is-finite.md
8647
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/no-number-schema-with-is-finite.md
8648
8648
  */
8649
8649
  'zod/no-number-schema-with-is-finite'?: Linter.RuleEntry<[]>;
8650
8650
  /**
8651
8651
  * Disallow using deprecated `isInt` on a Zod number schema; check the `format` property instead.
8652
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/no-number-schema-with-is-int.md
8652
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/no-number-schema-with-is-int.md
8653
8653
  */
8654
8654
  'zod/no-number-schema-with-is-int'?: Linter.RuleEntry<[]>;
8655
8655
  /**
8656
8656
  * Disallow deprecated `z.number().safe()`. Use `z.int()`; `.safe()` is now identical to `.int()`.
8657
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/no-number-schema-with-safe.md
8657
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/no-number-schema-with-safe.md
8658
8658
  */
8659
8659
  'zod/no-number-schema-with-safe'?: Linter.RuleEntry<[]>;
8660
8660
  /**
8661
8661
  * Disallow deprecated `z.number().step()`. Use `.multipleOf()` instead.
8662
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/no-number-schema-with-step.md
8662
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/no-number-schema-with-step.md
8663
8663
  */
8664
8664
  'zod/no-number-schema-with-step'?: Linter.RuleEntry<[]>;
8665
8665
  /**
8666
8666
  * Disallow using both `.optional()` and `.default()` on the same Zod schema
8667
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/no-optional-and-default-together.md
8667
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/no-optional-and-default-together.md
8668
8668
  */
8669
8669
  'zod/no-optional-and-default-together'?: Linter.RuleEntry<ZodNoOptionalAndDefaultTogether>;
8670
8670
  /**
8671
8671
  * Disallow usage of `z.string().uuid()` in favor of the dedicated `z.uuid()` schema
8672
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/no-string-schema-with-uuid.md
8672
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/no-string-schema-with-uuid.md
8673
8673
  */
8674
8674
  'zod/no-string-schema-with-uuid'?: Linter.RuleEntry<[]>;
8675
8675
  /**
8676
8676
  * Disallow throwing errors directly inside Zod refine callbacks
8677
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/no-throw-in-refine.md
8677
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/no-throw-in-refine.md
8678
8678
  */
8679
8679
  'zod/no-throw-in-refine'?: Linter.RuleEntry<[]>;
8680
8680
  /**
8681
8681
  * Disallow transforms in z.record() key schemas, which can cause silent key mutations and data loss through key collisions
8682
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/no-transform-in-record-key.md
8682
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/no-transform-in-record-key.md
8683
8683
  */
8684
8684
  'zod/no-transform-in-record-key'?: Linter.RuleEntry<[]>;
8685
8685
  /**
8686
8686
  * Disallow usage of `z.unknown()` in Zod schemas
8687
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/no-unknown-schema.md
8687
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/no-unknown-schema.md
8688
8688
  */
8689
8689
  'zod/no-unknown-schema'?: Linter.RuleEntry<[]>;
8690
8690
  /**
8691
8691
  * Prefer `z.enum()` over `z.union()` when all members are string literals.
8692
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/prefer-enum-over-literal-union.md
8692
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/prefer-enum-over-literal-union.md
8693
8693
  */
8694
8694
  'zod/prefer-enum-over-literal-union'?: Linter.RuleEntry<[]>;
8695
8695
  /**
8696
8696
  * Enforce usage of `.meta()` over `.describe()`
8697
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/prefer-meta.md
8697
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/prefer-meta.md
8698
8698
  */
8699
8699
  'zod/prefer-meta'?: Linter.RuleEntry<[]>;
8700
8700
  /**
8701
8701
  * Enforce `.meta()` as last method
8702
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/prefer-meta-last.md
8702
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/prefer-meta-last.md
8703
8703
  */
8704
8704
  'zod/prefer-meta-last'?: Linter.RuleEntry<[]>;
8705
8705
  /**
8706
8706
  * Enforce importing zod as a namespace import (`import * as z from 'zod'`)
8707
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/prefer-namespace-import.md
8707
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/prefer-namespace-import.md
8708
8708
  * @deprecated
8709
8709
  */
8710
8710
  'zod/prefer-namespace-import'?: Linter.RuleEntry<[]>;
8711
8711
  /**
8712
8712
  * Enforce `z.string().trim()` to prevent accidental leading/trailing whitespace
8713
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/prefer-string-schema-with-trim.md
8713
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/prefer-string-schema-with-trim.md
8714
8714
  */
8715
8715
  'zod/prefer-string-schema-with-trim'?: Linter.RuleEntry<[]>;
8716
8716
  /**
8717
8717
  * Enforce `.trim()` is called before string length checks to ensure accurate validation
8718
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/prefer-trim-before-string-length-checks.md
8718
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/prefer-trim-before-string-length-checks.md
8719
8719
  */
8720
8720
  'zod/prefer-trim-before-string-length-checks'?: Linter.RuleEntry<[]>;
8721
8721
  /**
8722
8722
  * Require type parameter on `.brand()` functions
8723
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/require-brand-type-parameter.md
8723
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/require-brand-type-parameter.md
8724
8724
  */
8725
8725
  'zod/require-brand-type-parameter'?: Linter.RuleEntry<[]>;
8726
8726
  /**
8727
8727
  * Enforce that custom refinements include an error message
8728
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/require-error-message.md
8728
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/require-error-message.md
8729
8729
  */
8730
8730
  'zod/require-error-message'?: Linter.RuleEntry<[]>;
8731
8731
  /**
8732
8732
  * Require schema suffix when declaring a Zod schema
8733
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/require-schema-suffix.md
8733
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/require-schema-suffix.md
8734
8734
  * @deprecated
8735
8735
  */
8736
8736
  'zod/require-schema-suffix'?: Linter.RuleEntry<ZodRequireSchemaSuffix>;
8737
8737
  /**
8738
8738
  * Enforce consistent style for error messages in Zod schema validation (using ESQuery patterns)
8739
- * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/HEAD/docs/rules/schema-error-property-style.md
8739
+ * @see https://github.com/marcalexiei/eslint-plugin-zod/blob/v3.12.1/docs/rules/schema-error-property-style.md
8740
8740
  */
8741
8741
  'zod/schema-error-property-style'?: Linter.RuleEntry<ZodSchemaErrorPropertyStyle>;
8742
8742
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2digits/eslint-config",
3
- "version": "5.4.12",
3
+ "version": "5.4.13",
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
  "keywords": [
6
6
  "eslint-config"
@@ -30,7 +30,7 @@
30
30
  "@eslint/js": "10.0.1",
31
31
  "@eslint/markdown": "8.0.1",
32
32
  "@graphql-eslint/eslint-plugin": "4.4.0",
33
- "@next/eslint-plugin-next": "16.2.4",
33
+ "@next/eslint-plugin-next": "16.2.5",
34
34
  "@stylistic/eslint-plugin": "5.10.0",
35
35
  "@tanstack/eslint-plugin-query": "5.100.9",
36
36
  "@tanstack/eslint-plugin-router": "1.161.6",
@@ -43,13 +43,13 @@
43
43
  "eslint-flat-config-utils": "3.2.0",
44
44
  "eslint-merge-processors": "2.0.0",
45
45
  "eslint-plugin-antfu": "3.2.2",
46
- "eslint-plugin-de-morgan": "2.1.1",
46
+ "eslint-plugin-de-morgan": "2.1.2",
47
47
  "eslint-plugin-depend": "1.5.0",
48
48
  "eslint-plugin-drizzle": "0.2.3",
49
49
  "eslint-plugin-github-action": "0.2.0",
50
50
  "eslint-plugin-jsdoc": "62.9.0",
51
51
  "eslint-plugin-jsonc": "3.1.2",
52
- "eslint-plugin-n": "18.0.0",
52
+ "eslint-plugin-n": "18.0.1",
53
53
  "eslint-plugin-pnpm": "1.6.0",
54
54
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
55
55
  "eslint-plugin-regexp": "3.1.0",
@@ -60,7 +60,7 @@
60
60
  "eslint-plugin-turbo": "2.9.9",
61
61
  "eslint-plugin-unicorn": "64.0.0",
62
62
  "eslint-plugin-yml": "3.3.2",
63
- "eslint-plugin-zod": "3.12.0",
63
+ "eslint-plugin-zod": "3.12.1",
64
64
  "globals": "17.6.0",
65
65
  "graphql-config": "5.1.6",
66
66
  "jsonc-eslint-parser": "3.1.0",
@@ -74,14 +74,14 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@arethetypeswrong/core": "0.18.2",
77
- "@eslint/config-inspector": "2.0.0",
77
+ "@eslint/config-inspector": "2.0.1",
78
78
  "@types/react": "19.2.14",
79
- "@typescript/native-preview": "7.0.0-dev.20260504.1",
79
+ "@typescript/native-preview": "7.0.0-dev.20260506.1",
80
80
  "dedent": "1.7.2",
81
81
  "eslint": "10.3.0",
82
82
  "eslint-typegen": "2.3.1",
83
- "publint": "0.3.18",
84
- "react": "19.2.5",
83
+ "publint": "0.3.19",
84
+ "react": "19.2.6",
85
85
  "tinyexec": "1.1.2",
86
86
  "tinyglobby": "0.2.16",
87
87
  "typescript": "6.0.3",