@2digits/eslint-config 4.13.7 → 4.13.9
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 +9 -0
- package/package.json +12 -10
package/dist/index.d.mts
CHANGED
|
@@ -7809,6 +7809,11 @@ interface RuleOptions {
|
|
|
7809
7809
|
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/consistent-import-source.md
|
|
7810
7810
|
*/
|
|
7811
7811
|
'zod/consistent-import-source'?: Linter.RuleEntry<ZodConsistentImportSource>;
|
|
7812
|
+
/**
|
|
7813
|
+
* Enforce consistent usage of Zod schema methods
|
|
7814
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/consistent-object-schema-type.md
|
|
7815
|
+
*/
|
|
7816
|
+
'zod/consistent-object-schema-type'?: Linter.RuleEntry<ZodConsistentObjectSchemaType>;
|
|
7812
7817
|
/**
|
|
7813
7818
|
* Disallow usage of `z.any()` in Zod schemas
|
|
7814
7819
|
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/no-any.md
|
|
@@ -14245,6 +14250,10 @@ type ZodArrayStyle = [] | [{
|
|
|
14245
14250
|
type ZodConsistentImportSource = [] | [{
|
|
14246
14251
|
sources?: [("zod" | "zod/mini" | "zod/v4" | "zod/v4-mini" | "zod/v3"), ...(("zod" | "zod/mini" | "zod/v4" | "zod/v4-mini" | "zod/v3"))[]];
|
|
14247
14252
|
}];
|
|
14253
|
+
// ----- zod/consistent-object-schema-type -----
|
|
14254
|
+
type ZodConsistentObjectSchemaType = [] | [{
|
|
14255
|
+
allow?: [("object" | "looseObject" | "strictObject"), ...(("object" | "looseObject" | "strictObject"))[]];
|
|
14256
|
+
}];
|
|
14248
14257
|
// ----- zod/no-optional-and-default-together -----
|
|
14249
14258
|
type ZodNoOptionalAndDefaultTogether = [] | [{
|
|
14250
14259
|
preferredMethod?: ("none" | "default" | "optional");
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2digits/eslint-config",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.9",
|
|
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": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/2digits-agency/configs.git",
|
|
8
|
+
"url": "git+https://github.com/2digits-agency/configs.git",
|
|
9
9
|
"directory": "packages/eslint-config"
|
|
10
10
|
},
|
|
11
11
|
"type": "module",
|
|
@@ -27,13 +27,13 @@
|
|
|
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.
|
|
30
|
+
"@eslint-react/eslint-plugin": "2.3.9",
|
|
31
31
|
"@eslint/compat": "2.0.0",
|
|
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.
|
|
36
|
+
"@next/eslint-plugin-next": "16.0.5",
|
|
37
37
|
"@stylistic/eslint-plugin": "5.6.1",
|
|
38
38
|
"@tanstack/eslint-plugin-query": "5.91.2",
|
|
39
39
|
"@tanstack/eslint-plugin-router": "1.139.0",
|
|
@@ -57,12 +57,12 @@
|
|
|
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.
|
|
60
|
+
"eslint-plugin-storybook": "10.1.2",
|
|
61
61
|
"eslint-plugin-tailwindcss": "3.18.2",
|
|
62
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.
|
|
65
|
+
"eslint-plugin-zod-x": "1.11.1",
|
|
66
66
|
"globals": "16.5.0",
|
|
67
67
|
"graphql-config": "5.1.5",
|
|
68
68
|
"jsonc-eslint-parser": "2.4.1",
|
|
@@ -71,22 +71,24 @@
|
|
|
71
71
|
"tailwind-csstree": "0.1.4",
|
|
72
72
|
"typescript-eslint": "8.48.0",
|
|
73
73
|
"yaml-eslint-parser": "1.3.1",
|
|
74
|
-
"@2digits/constants": "1.1.
|
|
75
|
-
"@2digits/eslint-plugin": "3.2.
|
|
74
|
+
"@2digits/constants": "1.1.11",
|
|
75
|
+
"@2digits/eslint-plugin": "3.2.7"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
+
"@arethetypeswrong/core": "0.18.2",
|
|
78
79
|
"@eslint/config-inspector": "1.4.2",
|
|
79
80
|
"@types/react": "19.2.7",
|
|
80
81
|
"dedent": "1.7.0",
|
|
81
82
|
"eslint": "9.39.1",
|
|
82
83
|
"eslint-typegen": "2.3.0",
|
|
84
|
+
"publint": "0.3.15",
|
|
83
85
|
"react": "19.2.0",
|
|
84
86
|
"tinyexec": "1.0.2",
|
|
85
87
|
"tinyglobby": "0.2.15",
|
|
86
|
-
"tsdown": "0.16.
|
|
88
|
+
"tsdown": "0.16.8",
|
|
87
89
|
"typescript": "5.9.3",
|
|
88
90
|
"vitest": "4.0.14",
|
|
89
|
-
"@2digits/tsconfig": "0.8.
|
|
91
|
+
"@2digits/tsconfig": "0.8.5"
|
|
90
92
|
},
|
|
91
93
|
"scripts": {
|
|
92
94
|
"build": "tsdown --minify --config-loader unconfig",
|