@2digits/eslint-config 4.13.6 → 4.13.8

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 +9 -0
  2. package/package.json +14 -14
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@2digits/eslint-config",
3
- "version": "4.13.6",
3
+ "version": "4.13.8",
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.7",
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.3",
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",
40
- "@typescript-eslint/parser": "8.47.0",
41
- "@typescript-eslint/utils": "8.47.0",
40
+ "@typescript-eslint/parser": "8.48.0",
41
+ "@typescript-eslint/utils": "8.48.0",
42
42
  "empathic": "2.0.0",
43
43
  "eslint-config-flat-gitignore": "2.1.0",
44
44
  "eslint-config-prettier": "10.1.8",
@@ -49,7 +49,7 @@
49
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.4.0",
52
+ "eslint-plugin-jsdoc": "61.4.1",
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.8",
60
+ "eslint-plugin-storybook": "10.1.0",
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.10.0",
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",
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.47.0",
73
- "yaml-eslint-parser": "1.3.0",
72
+ "typescript-eslint": "8.48.0",
73
+ "yaml-eslint-parser": "1.3.1",
74
74
  "@2digits/constants": "1.1.10",
75
- "@2digits/eslint-plugin": "3.2.5"
75
+ "@2digits/eslint-plugin": "3.2.6"
76
76
  },
77
77
  "devDependencies": {
78
- "@eslint/config-inspector": "1.4.1",
79
- "@types/react": "19.2.6",
78
+ "@eslint/config-inspector": "1.4.2",
79
+ "@types/react": "19.2.7",
80
80
  "dedent": "1.7.0",
81
81
  "eslint": "9.39.1",
82
82
  "eslint-typegen": "2.3.0",
@@ -85,7 +85,7 @@
85
85
  "tinyglobby": "0.2.15",
86
86
  "tsdown": "0.16.1",
87
87
  "typescript": "5.9.3",
88
- "vitest": "4.0.13",
88
+ "vitest": "4.0.14",
89
89
  "@2digits/tsconfig": "0.8.4"
90
90
  },
91
91
  "scripts": {