@eslint-react/kit 1.45.4-next.4 → 1.45.4

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 CHANGED
@@ -1,8 +1,7 @@
1
1
  import * as tseslint from '@typescript-eslint/utils/ts-eslint';
2
2
  import { ReportDescriptor } from '@typescript-eslint/utils/ts-eslint';
3
3
  import { CompilerOptions, JsxEmit } from 'typescript';
4
- import * as valibot from 'valibot';
5
- import { InferOutput } from 'valibot';
4
+ import * as z from '@zod/mini';
6
5
  import { _ } from '@eslint-react/eff';
7
6
  import { TSESTree } from '@typescript-eslint/utils';
8
7
 
@@ -67,30 +66,19 @@ declare namespace index$1 {
67
66
  /**
68
67
  * @internal
69
68
  */
70
- declare const LanguagePreferenceSchema: valibot.ObjectSchema<{
71
- readonly indentStyle: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"tab", undefined>, valibot.LiteralSchema<"space", undefined>], undefined>, "space">;
72
- readonly indentWidth: valibot.OptionalSchema<valibot.NumberSchema<undefined>, 2>;
73
- readonly quoteStyle: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"single", undefined>, valibot.LiteralSchema<"double", undefined>], undefined>, "single">;
74
- readonly semicolons: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"always", undefined>, valibot.LiteralSchema<"asNeeded", undefined>], undefined>, "always">;
75
- readonly trailingCommas: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"all", undefined>, valibot.LiteralSchema<"es5", undefined>, valibot.LiteralSchema<"none", undefined>], undefined>, "all">;
76
- readonly jsxQuoteStyle: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"single", undefined>, valibot.LiteralSchema<"double", undefined>], undefined>, "double">;
77
- }, undefined>;
69
+ declare const LanguagePreferenceSchema: z.ZodMiniObject<{
70
+ indentStyle: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tab">, z.ZodMiniLiteral<"space">]>>;
71
+ indentWidth: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
72
+ quoteStyle: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"single">, z.ZodMiniLiteral<"double">]>>;
73
+ semicolons: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"always">, z.ZodMiniLiteral<"asNeeded">]>>;
74
+ trailingCommas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"all">, z.ZodMiniLiteral<"es5">, z.ZodMiniLiteral<"none">]>>;
75
+ jsxQuoteStyle: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"single">, z.ZodMiniLiteral<"double">]>>;
76
+ }, {}>;
78
77
 
79
78
  /**
80
79
  * @internal
81
80
  */
82
- type LanguagePreference = InferOutput<typeof LanguagePreferenceSchema>;
83
- /**
84
- * The default language preference.
85
- */
86
- declare const DEFAULT_LANGUAGE_PREFERENCE: {
87
- readonly indentStyle: "space";
88
- readonly indentWidth: 2;
89
- readonly jsxQuoteStyle: "double";
90
- readonly quoteStyle: "single";
91
- readonly semicolons: "always";
92
- readonly trailingCommas: "all";
93
- };
81
+ type LanguagePreference = z.infer<typeof LanguagePreferenceSchema>;
94
82
  /**
95
83
  * Get a copy of the default LanguagePreference.
96
84
  */
@@ -101,12 +89,11 @@ declare module "@typescript-eslint/utils/ts-eslint" {
101
89
  }
102
90
  }
103
91
 
104
- declare const index_DEFAULT_LANGUAGE_PREFERENCE: typeof DEFAULT_LANGUAGE_PREFERENCE;
105
92
  type index_LanguagePreference = LanguagePreference;
106
93
  declare const index_LanguagePreferenceSchema: typeof LanguagePreferenceSchema;
107
94
  declare const index_getFromContext: typeof getFromContext;
108
95
  declare namespace index {
109
- export { index_DEFAULT_LANGUAGE_PREFERENCE as DEFAULT_LANGUAGE_PREFERENCE, type index_LanguagePreference as LanguagePreference, index_LanguagePreferenceSchema as LanguagePreferenceSchema, index_getFromContext as getFromContext, make$1 as make };
96
+ export { type index_LanguagePreference as LanguagePreference, index_LanguagePreferenceSchema as LanguagePreferenceSchema, index_getFromContext as getFromContext, make$1 as make };
110
97
  }
111
98
 
112
99
  /**
package/dist/index.d.ts CHANGED
@@ -1,8 +1,7 @@
1
1
  import * as tseslint from '@typescript-eslint/utils/ts-eslint';
2
2
  import { ReportDescriptor } from '@typescript-eslint/utils/ts-eslint';
3
3
  import { CompilerOptions, JsxEmit } from 'typescript';
4
- import * as valibot from 'valibot';
5
- import { InferOutput } from 'valibot';
4
+ import * as z from '@zod/mini';
6
5
  import { _ } from '@eslint-react/eff';
7
6
  import { TSESTree } from '@typescript-eslint/utils';
8
7
 
@@ -67,30 +66,19 @@ declare namespace index$1 {
67
66
  /**
68
67
  * @internal
69
68
  */
70
- declare const LanguagePreferenceSchema: valibot.ObjectSchema<{
71
- readonly indentStyle: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"tab", undefined>, valibot.LiteralSchema<"space", undefined>], undefined>, "space">;
72
- readonly indentWidth: valibot.OptionalSchema<valibot.NumberSchema<undefined>, 2>;
73
- readonly quoteStyle: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"single", undefined>, valibot.LiteralSchema<"double", undefined>], undefined>, "single">;
74
- readonly semicolons: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"always", undefined>, valibot.LiteralSchema<"asNeeded", undefined>], undefined>, "always">;
75
- readonly trailingCommas: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"all", undefined>, valibot.LiteralSchema<"es5", undefined>, valibot.LiteralSchema<"none", undefined>], undefined>, "all">;
76
- readonly jsxQuoteStyle: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"single", undefined>, valibot.LiteralSchema<"double", undefined>], undefined>, "double">;
77
- }, undefined>;
69
+ declare const LanguagePreferenceSchema: z.ZodMiniObject<{
70
+ indentStyle: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"tab">, z.ZodMiniLiteral<"space">]>>;
71
+ indentWidth: z.ZodMiniOptional<z.ZodMiniNumber<number>>;
72
+ quoteStyle: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"single">, z.ZodMiniLiteral<"double">]>>;
73
+ semicolons: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"always">, z.ZodMiniLiteral<"asNeeded">]>>;
74
+ trailingCommas: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"all">, z.ZodMiniLiteral<"es5">, z.ZodMiniLiteral<"none">]>>;
75
+ jsxQuoteStyle: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniLiteral<"single">, z.ZodMiniLiteral<"double">]>>;
76
+ }, {}>;
78
77
 
79
78
  /**
80
79
  * @internal
81
80
  */
82
- type LanguagePreference = InferOutput<typeof LanguagePreferenceSchema>;
83
- /**
84
- * The default language preference.
85
- */
86
- declare const DEFAULT_LANGUAGE_PREFERENCE: {
87
- readonly indentStyle: "space";
88
- readonly indentWidth: 2;
89
- readonly jsxQuoteStyle: "double";
90
- readonly quoteStyle: "single";
91
- readonly semicolons: "always";
92
- readonly trailingCommas: "all";
93
- };
81
+ type LanguagePreference = z.infer<typeof LanguagePreferenceSchema>;
94
82
  /**
95
83
  * Get a copy of the default LanguagePreference.
96
84
  */
@@ -101,12 +89,11 @@ declare module "@typescript-eslint/utils/ts-eslint" {
101
89
  }
102
90
  }
103
91
 
104
- declare const index_DEFAULT_LANGUAGE_PREFERENCE: typeof DEFAULT_LANGUAGE_PREFERENCE;
105
92
  type index_LanguagePreference = LanguagePreference;
106
93
  declare const index_LanguagePreferenceSchema: typeof LanguagePreferenceSchema;
107
94
  declare const index_getFromContext: typeof getFromContext;
108
95
  declare namespace index {
109
- export { index_DEFAULT_LANGUAGE_PREFERENCE as DEFAULT_LANGUAGE_PREFERENCE, type index_LanguagePreference as LanguagePreference, index_LanguagePreferenceSchema as LanguagePreferenceSchema, index_getFromContext as getFromContext, make$1 as make };
96
+ export { type index_LanguagePreference as LanguagePreference, index_LanguagePreferenceSchema as LanguagePreferenceSchema, index_getFromContext as getFromContext, make$1 as make };
110
97
  }
111
98
 
112
99
  /**
package/dist/index.js CHANGED
@@ -2,7 +2,27 @@
2
2
 
3
3
  var eff = require('@eslint-react/eff');
4
4
  var typescript = require('typescript');
5
- var valibot = require('valibot');
5
+ var z = require('@zod/mini');
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n.default = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var z__namespace = /*#__PURE__*/_interopNamespace(z);
6
26
 
7
27
  var __defProp = Object.defineProperty;
8
28
  var __export = (target, all) => {
@@ -109,67 +129,60 @@ function getFromAnnotation(context) {
109
129
  // src/LanguagePreference/index.ts
110
130
  var LanguagePreference_exports = {};
111
131
  __export(LanguagePreference_exports, {
112
- DEFAULT_LANGUAGE_PREFERENCE: () => DEFAULT_LANGUAGE_PREFERENCE,
113
132
  LanguagePreferenceSchema: () => LanguagePreferenceSchema,
114
133
  getFromContext: () => getFromContext2,
115
134
  make: () => make2
116
135
  });
117
- var DEFAULT_LANGUAGE_PREFERENCE = {
118
- indentStyle: "space",
119
- indentWidth: 2,
120
- jsxQuoteStyle: "double",
121
- quoteStyle: "single",
122
- semicolons: "always",
123
- trailingCommas: "all"
124
- };
136
+
137
+ // src/LanguagePreference/LanguagePreference.ts
125
138
  function make2() {
126
139
  return {
127
- ...DEFAULT_LANGUAGE_PREFERENCE
140
+ indentStyle: "space",
141
+ indentWidth: 2,
142
+ jsxQuoteStyle: "double",
143
+ quoteStyle: "single",
144
+ semicolons: "always",
145
+ trailingCommas: "all"
128
146
  };
129
147
  }
130
148
  function getFromContext2() {
131
149
  throw new Error("getFromContext is not implemented");
132
150
  }
133
- var LanguagePreferenceSchema = valibot.object({
134
- indentStyle: valibot.optional(
135
- valibot.union([
136
- valibot.literal("tab"),
137
- valibot.literal("space")
138
- ]),
139
- "space"
151
+ var LanguagePreferenceSchema = z__namespace.object({
152
+ indentStyle: z__namespace.optional(
153
+ z__namespace.union([
154
+ z__namespace.literal("tab"),
155
+ z__namespace.literal("space")
156
+ ])
140
157
  ),
141
- indentWidth: valibot.optional(valibot.number(), 2),
142
- quoteStyle: valibot.optional(
143
- valibot.union([
144
- valibot.literal("single"),
145
- valibot.literal("double")
146
- ]),
147
- "single"
158
+ indentWidth: z__namespace.optional(z__namespace.number()),
159
+ quoteStyle: z__namespace.optional(
160
+ z__namespace.union([
161
+ z__namespace.literal("single"),
162
+ z__namespace.literal("double")
163
+ ])
148
164
  ),
149
- semicolons: valibot.optional(
150
- valibot.union([
151
- valibot.literal("always"),
152
- valibot.literal("asNeeded")
153
- ]),
154
- "always"
165
+ semicolons: z__namespace.optional(
166
+ z__namespace.union([
167
+ z__namespace.literal("always"),
168
+ z__namespace.literal("asNeeded")
169
+ ])
155
170
  ),
156
- trailingCommas: valibot.optional(
157
- valibot.union([
158
- valibot.literal("all"),
159
- valibot.literal("es5"),
160
- valibot.literal("none")
161
- ]),
162
- "all"
171
+ trailingCommas: z__namespace.optional(
172
+ z__namespace.union([
173
+ z__namespace.literal("all"),
174
+ z__namespace.literal("es5"),
175
+ z__namespace.literal("none")
176
+ ])
163
177
  ),
164
178
  // JSX specific options
165
- jsxQuoteStyle: valibot.optional(
166
- valibot.union([
167
- valibot.literal("single"),
168
- valibot.literal("double")
169
- ]),
170
- "double"
179
+ jsxQuoteStyle: z__namespace.optional(
180
+ z__namespace.union([
181
+ z__namespace.literal("single"),
182
+ z__namespace.literal("double")
183
+ ])
171
184
  )
172
- });
185
+ }, {});
173
186
 
174
187
  // src/Report.ts
175
188
  var Report_exports = {};
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { getOrElseUpdate } from '@eslint-react/eff';
2
2
  import { JsxEmit } from 'typescript';
3
- import { object, optional, union, literal, number } from 'valibot';
3
+ import * as z from '@zod/mini';
4
4
 
5
5
  var __defProp = Object.defineProperty;
6
6
  var __export = (target, all) => {
@@ -107,67 +107,60 @@ function getFromAnnotation(context) {
107
107
  // src/LanguagePreference/index.ts
108
108
  var LanguagePreference_exports = {};
109
109
  __export(LanguagePreference_exports, {
110
- DEFAULT_LANGUAGE_PREFERENCE: () => DEFAULT_LANGUAGE_PREFERENCE,
111
110
  LanguagePreferenceSchema: () => LanguagePreferenceSchema,
112
111
  getFromContext: () => getFromContext2,
113
112
  make: () => make2
114
113
  });
115
- var DEFAULT_LANGUAGE_PREFERENCE = {
116
- indentStyle: "space",
117
- indentWidth: 2,
118
- jsxQuoteStyle: "double",
119
- quoteStyle: "single",
120
- semicolons: "always",
121
- trailingCommas: "all"
122
- };
114
+
115
+ // src/LanguagePreference/LanguagePreference.ts
123
116
  function make2() {
124
117
  return {
125
- ...DEFAULT_LANGUAGE_PREFERENCE
118
+ indentStyle: "space",
119
+ indentWidth: 2,
120
+ jsxQuoteStyle: "double",
121
+ quoteStyle: "single",
122
+ semicolons: "always",
123
+ trailingCommas: "all"
126
124
  };
127
125
  }
128
126
  function getFromContext2() {
129
127
  throw new Error("getFromContext is not implemented");
130
128
  }
131
- var LanguagePreferenceSchema = object({
132
- indentStyle: optional(
133
- union([
134
- literal("tab"),
135
- literal("space")
136
- ]),
137
- "space"
129
+ var LanguagePreferenceSchema = z.object({
130
+ indentStyle: z.optional(
131
+ z.union([
132
+ z.literal("tab"),
133
+ z.literal("space")
134
+ ])
138
135
  ),
139
- indentWidth: optional(number(), 2),
140
- quoteStyle: optional(
141
- union([
142
- literal("single"),
143
- literal("double")
144
- ]),
145
- "single"
136
+ indentWidth: z.optional(z.number()),
137
+ quoteStyle: z.optional(
138
+ z.union([
139
+ z.literal("single"),
140
+ z.literal("double")
141
+ ])
146
142
  ),
147
- semicolons: optional(
148
- union([
149
- literal("always"),
150
- literal("asNeeded")
151
- ]),
152
- "always"
143
+ semicolons: z.optional(
144
+ z.union([
145
+ z.literal("always"),
146
+ z.literal("asNeeded")
147
+ ])
153
148
  ),
154
- trailingCommas: optional(
155
- union([
156
- literal("all"),
157
- literal("es5"),
158
- literal("none")
159
- ]),
160
- "all"
149
+ trailingCommas: z.optional(
150
+ z.union([
151
+ z.literal("all"),
152
+ z.literal("es5"),
153
+ z.literal("none")
154
+ ])
161
155
  ),
162
156
  // JSX specific options
163
- jsxQuoteStyle: optional(
164
- union([
165
- literal("single"),
166
- literal("double")
167
- ]),
168
- "double"
157
+ jsxQuoteStyle: z.optional(
158
+ z.union([
159
+ z.literal("single"),
160
+ z.literal("double")
161
+ ])
169
162
  )
170
- });
163
+ }, {});
171
164
 
172
165
  // src/Report.ts
173
166
  var Report_exports = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/kit",
3
- "version": "1.45.4-next.4",
3
+ "version": "1.45.4",
4
4
  "description": "ESLint React's plugin kit for building plugins and rules.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -36,9 +36,9 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@typescript-eslint/utils": "^8.29.1",
39
+ "@zod/mini": "^4.0.0-beta.0",
39
40
  "ts-pattern": "^5.7.0",
40
- "valibot": "^1.0.0",
41
- "@eslint-react/eff": "1.45.4-next.4"
41
+ "@eslint-react/eff": "1.45.4"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@tsconfig/node22": "^22.0.1",