@2digits/eslint-config 4.12.5 → 4.12.6
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.mts +18 -13
- package/package.json +8 -8
package/dist/index.d.mts
CHANGED
|
@@ -3210,6 +3210,11 @@ interface RuleOptions {
|
|
|
3210
3210
|
* @see https://eslint-react.xyz/docs/rules/dom-prefer-namespace-import
|
|
3211
3211
|
*/
|
|
3212
3212
|
'react-dom/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
3213
|
+
/**
|
|
3214
|
+
* Prevents dollar signs from being inserted as text nodes before expressions.
|
|
3215
|
+
* @see https://eslint-react.xyz/docs/rules/jsx-dollar
|
|
3216
|
+
*/
|
|
3217
|
+
'react-extra/jsx-dollar'?: Linter.RuleEntry<[]>;
|
|
3213
3218
|
/**
|
|
3214
3219
|
* Enforces that the 'key' prop is placed before the spread prop in JSX elements.
|
|
3215
3220
|
* @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
|
|
@@ -7785,67 +7790,67 @@ interface RuleOptions {
|
|
|
7785
7790
|
'yoda'?: Linter.RuleEntry<Yoda>;
|
|
7786
7791
|
/**
|
|
7787
7792
|
* Enforce consistent Zod array style
|
|
7788
|
-
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/main/docs/rules/consistent-array-style.md
|
|
7793
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/consistent-array-style.md
|
|
7789
7794
|
*/
|
|
7790
7795
|
'zod/array-style'?: Linter.RuleEntry<ZodArrayStyle>;
|
|
7791
7796
|
/**
|
|
7792
7797
|
* Enforce consistent source from Zod imports
|
|
7793
|
-
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/main/docs/rules/consistent-import-source.md
|
|
7798
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/consistent-import-source.md
|
|
7794
7799
|
*/
|
|
7795
7800
|
'zod/consistent-import-source'?: Linter.RuleEntry<ZodConsistentImportSource>;
|
|
7796
7801
|
/**
|
|
7797
7802
|
* Disallow usage of `z.any()` in Zod schemas
|
|
7798
|
-
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/main/docs/rules/no-any.md
|
|
7803
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/no-any.md
|
|
7799
7804
|
*/
|
|
7800
7805
|
'zod/no-any'?: Linter.RuleEntry<[]>;
|
|
7801
7806
|
/**
|
|
7802
7807
|
* Disallow usage of `z.custom()` without arguments
|
|
7803
|
-
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/main/docs/rules/no-empty-custom-schema.md
|
|
7808
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/no-empty-custom-schema.md
|
|
7804
7809
|
*/
|
|
7805
7810
|
'zod/no-empty-custom-schema'?: Linter.RuleEntry<[]>;
|
|
7806
7811
|
/**
|
|
7807
7812
|
* Disallow usage of `z.number().int()` as it is considered legacy
|
|
7808
|
-
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/main/docs/rules/no-number-schema-with-int.md
|
|
7813
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/no-number-schema-with-int.md
|
|
7809
7814
|
*/
|
|
7810
7815
|
'zod/no-number-schema-with-int'?: Linter.RuleEntry<[]>;
|
|
7811
7816
|
/**
|
|
7812
7817
|
* Disallow using both `.optional()` and `.default()` on the same Zod schema
|
|
7813
|
-
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/main/docs/rules/no-optional-and-default-together.md
|
|
7818
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/no-optional-and-default-together.md
|
|
7814
7819
|
*/
|
|
7815
7820
|
'zod/no-optional-and-default-together'?: Linter.RuleEntry<ZodNoOptionalAndDefaultTogether>;
|
|
7816
7821
|
/**
|
|
7817
7822
|
* Disallow throwing errors directly inside Zod refine callbacks
|
|
7818
|
-
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/main/docs/rules/no-throw-in-refine.md
|
|
7823
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/no-throw-in-refine.md
|
|
7819
7824
|
*/
|
|
7820
7825
|
'zod/no-throw-in-refine'?: Linter.RuleEntry<[]>;
|
|
7821
7826
|
/**
|
|
7822
7827
|
* Enforce usage of `.meta()` over `.describe()`
|
|
7823
|
-
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/main/docs/rules/prefer-meta.md
|
|
7828
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/prefer-meta.md
|
|
7824
7829
|
*/
|
|
7825
7830
|
'zod/prefer-meta'?: Linter.RuleEntry<[]>;
|
|
7826
7831
|
/**
|
|
7827
7832
|
* Enforce `.meta()` as last method
|
|
7828
|
-
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/main/docs/rules/prefer-meta-last.md
|
|
7833
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/prefer-meta-last.md
|
|
7829
7834
|
*/
|
|
7830
7835
|
'zod/prefer-meta-last'?: Linter.RuleEntry<[]>;
|
|
7831
7836
|
/**
|
|
7832
7837
|
* Enforce importing zod as a namespace import (`import * as z from 'zod'`)
|
|
7833
|
-
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/main/docs/rules/prefer-namespace-import.md
|
|
7838
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/prefer-namespace-import.md
|
|
7834
7839
|
*/
|
|
7835
7840
|
'zod/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
7836
7841
|
/**
|
|
7837
7842
|
* Enforce usage of `.strictObject()` over `.object()` and/or `.looseObject()`
|
|
7838
|
-
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/main/docs/rules/prefer-strict-object.md
|
|
7843
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/prefer-strict-object.md
|
|
7839
7844
|
*/
|
|
7840
7845
|
'zod/prefer-strict-object'?: Linter.RuleEntry<ZodPreferStrictObject>;
|
|
7841
7846
|
/**
|
|
7842
7847
|
* Enforce that custom refinements include an error message
|
|
7843
|
-
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/main/docs/rules/require-error-message.md
|
|
7848
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/require-error-message.md
|
|
7844
7849
|
*/
|
|
7845
7850
|
'zod/require-error-message'?: Linter.RuleEntry<[]>;
|
|
7846
7851
|
/**
|
|
7847
7852
|
* Require schema suffix when declaring a Zod schema
|
|
7848
|
-
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/main/docs/rules/require-schema-suffix.md
|
|
7853
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x#readme/blob/main/docs/rules/require-schema-suffix.md
|
|
7849
7854
|
*/
|
|
7850
7855
|
'zod/require-schema-suffix'?: Linter.RuleEntry<ZodRequireSchemaSuffix>;
|
|
7851
7856
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/eslint-config",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.6",
|
|
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,7 +27,7 @@
|
|
|
27
27
|
"public": true,
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
|
|
30
|
-
"@eslint-react/eslint-plugin": "2.
|
|
30
|
+
"@eslint-react/eslint-plugin": "2.3.1",
|
|
31
31
|
"@eslint/compat": "1.4.1",
|
|
32
32
|
"@eslint/css": "0.14.0",
|
|
33
33
|
"@eslint/js": "9.38.0",
|
|
@@ -57,13 +57,13 @@
|
|
|
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.
|
|
60
|
+
"eslint-plugin-storybook": "10.0.2",
|
|
61
61
|
"eslint-plugin-tailwindcss": "3.18.2",
|
|
62
|
-
"eslint-plugin-turbo": "2.
|
|
62
|
+
"eslint-plugin-turbo": "2.6.0",
|
|
63
63
|
"eslint-plugin-unicorn": "62.0.0",
|
|
64
64
|
"eslint-plugin-yml": "1.19.0",
|
|
65
|
-
"eslint-plugin-zod-x": "1.7.
|
|
66
|
-
"globals": "16.
|
|
65
|
+
"eslint-plugin-zod-x": "1.7.1",
|
|
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",
|
|
@@ -83,9 +83,9 @@
|
|
|
83
83
|
"react": "19.2.0",
|
|
84
84
|
"tinyexec": "1.0.1",
|
|
85
85
|
"tinyglobby": "0.2.15",
|
|
86
|
-
"tsdown": "0.15.
|
|
86
|
+
"tsdown": "0.15.12",
|
|
87
87
|
"typescript": "5.9.3",
|
|
88
|
-
"vitest": "4.0.
|
|
88
|
+
"vitest": "4.0.6",
|
|
89
89
|
"@2digits/tsconfig": "0.8.4"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|