@eslint-react/kit 1.50.0-beta.5 → 1.50.0-beta.7
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 +7 -21
- package/dist/index.d.ts +7 -21
- package/dist/index.js +24 -44
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as typescript from 'typescript';
|
|
2
2
|
import * as tseslint from '@typescript-eslint/utils/ts-eslint';
|
|
3
3
|
import { ReportDescriptor } from '@typescript-eslint/utils/ts-eslint';
|
|
4
|
-
import
|
|
4
|
+
import { z } from 'zod/v4';
|
|
5
5
|
import { _ } from '@eslint-react/eff';
|
|
6
6
|
import { TSESTree } from '@typescript-eslint/utils';
|
|
7
7
|
|
|
@@ -81,27 +81,13 @@ declare namespace index$1 {
|
|
|
81
81
|
* @internal
|
|
82
82
|
*/
|
|
83
83
|
declare const LanguagePreferenceSchema: z.ZodObject<{
|
|
84
|
-
indentStyle: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"tab">, z.ZodLiteral<"space">]>>;
|
|
84
|
+
indentStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"tab">, z.ZodLiteral<"space">]>>;
|
|
85
85
|
indentWidth: z.ZodOptional<z.ZodNumber>;
|
|
86
|
-
quoteStyle: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"single">, z.ZodLiteral<"double">]>>;
|
|
87
|
-
semicolons: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"always">, z.ZodLiteral<"asNeeded">]>>;
|
|
88
|
-
trailingCommas: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"es5">, z.ZodLiteral<"none">]>>;
|
|
89
|
-
jsxQuoteStyle: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"single">, z.ZodLiteral<"double">]>>;
|
|
90
|
-
},
|
|
91
|
-
indentStyle?: "tab" | "space" | undefined;
|
|
92
|
-
indentWidth?: number | undefined;
|
|
93
|
-
quoteStyle?: "single" | "double" | undefined;
|
|
94
|
-
semicolons?: "always" | "asNeeded" | undefined;
|
|
95
|
-
trailingCommas?: "all" | "es5" | "none" | undefined;
|
|
96
|
-
jsxQuoteStyle?: "single" | "double" | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
indentStyle?: "tab" | "space" | undefined;
|
|
99
|
-
indentWidth?: number | undefined;
|
|
100
|
-
quoteStyle?: "single" | "double" | undefined;
|
|
101
|
-
semicolons?: "always" | "asNeeded" | undefined;
|
|
102
|
-
trailingCommas?: "all" | "es5" | "none" | undefined;
|
|
103
|
-
jsxQuoteStyle?: "single" | "double" | undefined;
|
|
104
|
-
}>;
|
|
86
|
+
quoteStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"single">, z.ZodLiteral<"double">]>>;
|
|
87
|
+
semicolons: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"always">, z.ZodLiteral<"asNeeded">]>>;
|
|
88
|
+
trailingCommas: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodLiteral<"es5">, z.ZodLiteral<"none">]>>;
|
|
89
|
+
jsxQuoteStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"single">, z.ZodLiteral<"double">]>>;
|
|
90
|
+
}, z.core.$strip>;
|
|
105
91
|
|
|
106
92
|
/**
|
|
107
93
|
* @internal
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as typescript from 'typescript';
|
|
2
2
|
import * as tseslint from '@typescript-eslint/utils/ts-eslint';
|
|
3
3
|
import { ReportDescriptor } from '@typescript-eslint/utils/ts-eslint';
|
|
4
|
-
import
|
|
4
|
+
import { z } from 'zod/v4';
|
|
5
5
|
import { _ } from '@eslint-react/eff';
|
|
6
6
|
import { TSESTree } from '@typescript-eslint/utils';
|
|
7
7
|
|
|
@@ -81,27 +81,13 @@ declare namespace index$1 {
|
|
|
81
81
|
* @internal
|
|
82
82
|
*/
|
|
83
83
|
declare const LanguagePreferenceSchema: z.ZodObject<{
|
|
84
|
-
indentStyle: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"tab">, z.ZodLiteral<"space">]>>;
|
|
84
|
+
indentStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"tab">, z.ZodLiteral<"space">]>>;
|
|
85
85
|
indentWidth: z.ZodOptional<z.ZodNumber>;
|
|
86
|
-
quoteStyle: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"single">, z.ZodLiteral<"double">]>>;
|
|
87
|
-
semicolons: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"always">, z.ZodLiteral<"asNeeded">]>>;
|
|
88
|
-
trailingCommas: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"es5">, z.ZodLiteral<"none">]>>;
|
|
89
|
-
jsxQuoteStyle: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"single">, z.ZodLiteral<"double">]>>;
|
|
90
|
-
},
|
|
91
|
-
indentStyle?: "tab" | "space" | undefined;
|
|
92
|
-
indentWidth?: number | undefined;
|
|
93
|
-
quoteStyle?: "single" | "double" | undefined;
|
|
94
|
-
semicolons?: "always" | "asNeeded" | undefined;
|
|
95
|
-
trailingCommas?: "all" | "es5" | "none" | undefined;
|
|
96
|
-
jsxQuoteStyle?: "single" | "double" | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
indentStyle?: "tab" | "space" | undefined;
|
|
99
|
-
indentWidth?: number | undefined;
|
|
100
|
-
quoteStyle?: "single" | "double" | undefined;
|
|
101
|
-
semicolons?: "always" | "asNeeded" | undefined;
|
|
102
|
-
trailingCommas?: "all" | "es5" | "none" | undefined;
|
|
103
|
-
jsxQuoteStyle?: "single" | "double" | undefined;
|
|
104
|
-
}>;
|
|
86
|
+
quoteStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"single">, z.ZodLiteral<"double">]>>;
|
|
87
|
+
semicolons: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"always">, z.ZodLiteral<"asNeeded">]>>;
|
|
88
|
+
trailingCommas: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodLiteral<"es5">, z.ZodLiteral<"none">]>>;
|
|
89
|
+
jsxQuoteStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"single">, z.ZodLiteral<"double">]>>;
|
|
90
|
+
}, z.core.$strip>;
|
|
105
91
|
|
|
106
92
|
/**
|
|
107
93
|
* @internal
|
package/dist/index.js
CHANGED
|
@@ -1,27 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var eff = require('@eslint-react/eff');
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
function _interopNamespace(e) {
|
|
7
|
-
if (e && e.__esModule) return e;
|
|
8
|
-
var n = Object.create(null);
|
|
9
|
-
if (e) {
|
|
10
|
-
Object.keys(e).forEach(function (k) {
|
|
11
|
-
if (k !== 'default') {
|
|
12
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () { return e[k]; }
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
n.default = e;
|
|
21
|
-
return Object.freeze(n);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
var z__namespace = /*#__PURE__*/_interopNamespace(z);
|
|
4
|
+
var v4 = require('zod/v4');
|
|
25
5
|
|
|
26
6
|
var __defProp = Object.defineProperty;
|
|
27
7
|
var __export = (target, all) => {
|
|
@@ -158,38 +138,38 @@ function make2() {
|
|
|
158
138
|
function getFromContext2() {
|
|
159
139
|
throw new Error("getFromContext is not implemented");
|
|
160
140
|
}
|
|
161
|
-
var LanguagePreferenceSchema =
|
|
162
|
-
indentStyle:
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
141
|
+
var LanguagePreferenceSchema = v4.z.object({
|
|
142
|
+
indentStyle: v4.z.optional(
|
|
143
|
+
v4.z.union([
|
|
144
|
+
v4.z.literal("tab"),
|
|
145
|
+
v4.z.literal("space")
|
|
166
146
|
])
|
|
167
147
|
),
|
|
168
|
-
indentWidth:
|
|
169
|
-
quoteStyle:
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
148
|
+
indentWidth: v4.z.optional(v4.z.number()),
|
|
149
|
+
quoteStyle: v4.z.optional(
|
|
150
|
+
v4.z.union([
|
|
151
|
+
v4.z.literal("single"),
|
|
152
|
+
v4.z.literal("double")
|
|
173
153
|
])
|
|
174
154
|
),
|
|
175
|
-
semicolons:
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
155
|
+
semicolons: v4.z.optional(
|
|
156
|
+
v4.z.union([
|
|
157
|
+
v4.z.literal("always"),
|
|
158
|
+
v4.z.literal("asNeeded")
|
|
179
159
|
])
|
|
180
160
|
),
|
|
181
|
-
trailingCommas:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
161
|
+
trailingCommas: v4.z.optional(
|
|
162
|
+
v4.z.union([
|
|
163
|
+
v4.z.literal("all"),
|
|
164
|
+
v4.z.literal("es5"),
|
|
165
|
+
v4.z.literal("none")
|
|
186
166
|
])
|
|
187
167
|
),
|
|
188
168
|
// JSX specific options
|
|
189
|
-
jsxQuoteStyle:
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
169
|
+
jsxQuoteStyle: v4.z.optional(
|
|
170
|
+
v4.z.union([
|
|
171
|
+
v4.z.literal("single"),
|
|
172
|
+
v4.z.literal("double")
|
|
193
173
|
])
|
|
194
174
|
)
|
|
195
175
|
}, {});
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/kit",
|
|
3
|
-
"version": "1.50.0-beta.
|
|
3
|
+
"version": "1.50.0-beta.7",
|
|
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": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@typescript-eslint/utils": "^8.32.1",
|
|
39
39
|
"ts-pattern": "^5.7.1",
|
|
40
40
|
"zod": "^3.25.28",
|
|
41
|
-
"@eslint-react/eff": "1.50.0-beta.
|
|
41
|
+
"@eslint-react/eff": "1.50.0-beta.7"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@tsconfig/node22": "^22.0.2",
|