@eslint-react/kit 1.40.2-next.0 → 1.40.2-next.2
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 +10 -18
- package/dist/index.d.ts +10 -18
- package/dist/index.js +22 -31
- package/dist/index.mjs +23 -32
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -62,16 +62,12 @@ declare namespace index$1 {
|
|
|
62
62
|
* @internal
|
|
63
63
|
*/
|
|
64
64
|
declare const LanguagePreferenceSchema: valibot.ObjectSchema<{
|
|
65
|
-
readonly bracketSameLine: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, false>;
|
|
66
|
-
readonly bracketSpacing: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, true>;
|
|
67
|
-
readonly endOfLine: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"lf", undefined>, valibot.LiteralSchema<"crlf", undefined>, valibot.LiteralSchema<"cr", undefined>, valibot.LiteralSchema<"auto", undefined>], undefined>, "lf">;
|
|
68
65
|
readonly indentStyle: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"tab", undefined>, valibot.LiteralSchema<"space", undefined>], undefined>, "space">;
|
|
69
66
|
readonly indentWidth: valibot.OptionalSchema<valibot.NumberSchema<undefined>, 2>;
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
74
|
-
readonly trailingComma: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"all", undefined>, valibot.LiteralSchema<"es5", undefined>, valibot.LiteralSchema<"none", undefined>], undefined>, "all">;
|
|
67
|
+
readonly quoteStyle: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"single", undefined>, valibot.LiteralSchema<"double", undefined>], undefined>, "single">;
|
|
68
|
+
readonly semicolons: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"always", undefined>, valibot.LiteralSchema<"asNeeded", undefined>], undefined>, "always">;
|
|
69
|
+
readonly trailingCommas: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"all", undefined>, valibot.LiteralSchema<"es5", undefined>, valibot.LiteralSchema<"none", undefined>], undefined>, "all">;
|
|
70
|
+
readonly jsxQuoteStyle: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"single", undefined>, valibot.LiteralSchema<"double", undefined>], undefined>, "double">;
|
|
75
71
|
}, undefined>;
|
|
76
72
|
|
|
77
73
|
/**
|
|
@@ -82,16 +78,12 @@ type LanguagePreference = InferOutput<typeof LanguagePreferenceSchema>;
|
|
|
82
78
|
* The default language preference.
|
|
83
79
|
*/
|
|
84
80
|
declare const DEFAULT_LANGUAGE_PREFERENCE: {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
jsxQuoteStyle: "preferDouble" | "preferSingle";
|
|
92
|
-
quoteStyle: "preferDouble" | "preferSingle" | "alwaysDouble" | "alwaysSingle";
|
|
93
|
-
semicolon: "always" | "prefer" | "asi";
|
|
94
|
-
trailingComma: "all" | "es5" | "none";
|
|
81
|
+
readonly indentStyle: "space";
|
|
82
|
+
readonly indentWidth: 2;
|
|
83
|
+
readonly jsxQuoteStyle: "double";
|
|
84
|
+
readonly quoteStyle: "single";
|
|
85
|
+
readonly semicolons: "always";
|
|
86
|
+
readonly trailingCommas: "all";
|
|
95
87
|
};
|
|
96
88
|
declare module "@typescript-eslint/utils/ts-eslint" {
|
|
97
89
|
interface SharedConfigurationSettings {
|
package/dist/index.d.ts
CHANGED
|
@@ -62,16 +62,12 @@ declare namespace index$1 {
|
|
|
62
62
|
* @internal
|
|
63
63
|
*/
|
|
64
64
|
declare const LanguagePreferenceSchema: valibot.ObjectSchema<{
|
|
65
|
-
readonly bracketSameLine: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, false>;
|
|
66
|
-
readonly bracketSpacing: valibot.OptionalSchema<valibot.BooleanSchema<undefined>, true>;
|
|
67
|
-
readonly endOfLine: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"lf", undefined>, valibot.LiteralSchema<"crlf", undefined>, valibot.LiteralSchema<"cr", undefined>, valibot.LiteralSchema<"auto", undefined>], undefined>, "lf">;
|
|
68
65
|
readonly indentStyle: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"tab", undefined>, valibot.LiteralSchema<"space", undefined>], undefined>, "space">;
|
|
69
66
|
readonly indentWidth: valibot.OptionalSchema<valibot.NumberSchema<undefined>, 2>;
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
74
|
-
readonly trailingComma: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"all", undefined>, valibot.LiteralSchema<"es5", undefined>, valibot.LiteralSchema<"none", undefined>], undefined>, "all">;
|
|
67
|
+
readonly quoteStyle: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"single", undefined>, valibot.LiteralSchema<"double", undefined>], undefined>, "single">;
|
|
68
|
+
readonly semicolons: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"always", undefined>, valibot.LiteralSchema<"asNeeded", undefined>], undefined>, "always">;
|
|
69
|
+
readonly trailingCommas: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"all", undefined>, valibot.LiteralSchema<"es5", undefined>, valibot.LiteralSchema<"none", undefined>], undefined>, "all">;
|
|
70
|
+
readonly jsxQuoteStyle: valibot.OptionalSchema<valibot.UnionSchema<[valibot.LiteralSchema<"single", undefined>, valibot.LiteralSchema<"double", undefined>], undefined>, "double">;
|
|
75
71
|
}, undefined>;
|
|
76
72
|
|
|
77
73
|
/**
|
|
@@ -82,16 +78,12 @@ type LanguagePreference = InferOutput<typeof LanguagePreferenceSchema>;
|
|
|
82
78
|
* The default language preference.
|
|
83
79
|
*/
|
|
84
80
|
declare const DEFAULT_LANGUAGE_PREFERENCE: {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
jsxQuoteStyle: "preferDouble" | "preferSingle";
|
|
92
|
-
quoteStyle: "preferDouble" | "preferSingle" | "alwaysDouble" | "alwaysSingle";
|
|
93
|
-
semicolon: "always" | "prefer" | "asi";
|
|
94
|
-
trailingComma: "all" | "es5" | "none";
|
|
81
|
+
readonly indentStyle: "space";
|
|
82
|
+
readonly indentWidth: 2;
|
|
83
|
+
readonly jsxQuoteStyle: "double";
|
|
84
|
+
readonly quoteStyle: "single";
|
|
85
|
+
readonly semicolons: "always";
|
|
86
|
+
readonly trailingCommas: "all";
|
|
95
87
|
};
|
|
96
88
|
declare module "@typescript-eslint/utils/ts-eslint" {
|
|
97
89
|
interface SharedConfigurationSettings {
|
package/dist/index.js
CHANGED
|
@@ -31,18 +31,15 @@ __export(LanguagePreference_exports, {
|
|
|
31
31
|
DEFAULT_LANGUAGE_PREFERENCE: () => DEFAULT_LANGUAGE_PREFERENCE,
|
|
32
32
|
LanguagePreferenceSchema: () => LanguagePreferenceSchema
|
|
33
33
|
});
|
|
34
|
+
var DEFAULT_LANGUAGE_PREFERENCE = {
|
|
35
|
+
indentStyle: "space",
|
|
36
|
+
indentWidth: 2,
|
|
37
|
+
jsxQuoteStyle: "double",
|
|
38
|
+
quoteStyle: "single",
|
|
39
|
+
semicolons: "always",
|
|
40
|
+
trailingCommas: "all"
|
|
41
|
+
};
|
|
34
42
|
var LanguagePreferenceSchema = valibot.object({
|
|
35
|
-
bracketSameLine: valibot.optional(valibot.boolean(), false),
|
|
36
|
-
bracketSpacing: valibot.optional(valibot.boolean(), true),
|
|
37
|
-
endOfLine: valibot.optional(
|
|
38
|
-
valibot.union([
|
|
39
|
-
valibot.literal("lf"),
|
|
40
|
-
valibot.literal("crlf"),
|
|
41
|
-
valibot.literal("cr"),
|
|
42
|
-
valibot.literal("auto")
|
|
43
|
-
]),
|
|
44
|
-
"lf"
|
|
45
|
-
),
|
|
46
43
|
indentStyle: valibot.optional(
|
|
47
44
|
valibot.union([
|
|
48
45
|
valibot.literal("tab"),
|
|
@@ -51,44 +48,38 @@ var LanguagePreferenceSchema = valibot.object({
|
|
|
51
48
|
"space"
|
|
52
49
|
),
|
|
53
50
|
indentWidth: valibot.optional(valibot.number(), 2),
|
|
54
|
-
insertFinalNewline: valibot.optional(valibot.boolean(), true),
|
|
55
|
-
jsxQuoteStyle: valibot.optional(
|
|
56
|
-
valibot.union([
|
|
57
|
-
valibot.literal("preferDouble"),
|
|
58
|
-
valibot.literal("preferSingle")
|
|
59
|
-
]),
|
|
60
|
-
"preferDouble"
|
|
61
|
-
),
|
|
62
51
|
quoteStyle: valibot.optional(
|
|
63
52
|
valibot.union([
|
|
64
|
-
valibot.literal("
|
|
65
|
-
valibot.literal("
|
|
66
|
-
valibot.literal("preferDouble"),
|
|
67
|
-
valibot.literal("preferSingle")
|
|
53
|
+
valibot.literal("single"),
|
|
54
|
+
valibot.literal("double")
|
|
68
55
|
]),
|
|
69
|
-
"
|
|
56
|
+
"single"
|
|
70
57
|
),
|
|
71
|
-
|
|
58
|
+
semicolons: valibot.optional(
|
|
72
59
|
valibot.union([
|
|
73
60
|
valibot.literal("always"),
|
|
74
|
-
valibot.literal("
|
|
75
|
-
valibot.literal("asi")
|
|
61
|
+
valibot.literal("asNeeded")
|
|
76
62
|
]),
|
|
77
63
|
"always"
|
|
78
64
|
),
|
|
79
|
-
|
|
65
|
+
trailingCommas: valibot.optional(
|
|
80
66
|
valibot.union([
|
|
81
67
|
valibot.literal("all"),
|
|
82
68
|
valibot.literal("es5"),
|
|
83
69
|
valibot.literal("none")
|
|
84
70
|
]),
|
|
85
71
|
"all"
|
|
72
|
+
),
|
|
73
|
+
// JSX specific options
|
|
74
|
+
jsxQuoteStyle: valibot.optional(
|
|
75
|
+
valibot.union([
|
|
76
|
+
valibot.literal("single"),
|
|
77
|
+
valibot.literal("double")
|
|
78
|
+
]),
|
|
79
|
+
"double"
|
|
86
80
|
)
|
|
87
81
|
});
|
|
88
82
|
|
|
89
|
-
// src/LanguagePreference/LanguagePreference.ts
|
|
90
|
-
var DEFAULT_LANGUAGE_PREFERENCE = valibot.parse(LanguagePreferenceSchema, {});
|
|
91
|
-
|
|
92
83
|
// src/RegExp.ts
|
|
93
84
|
var RE_TS_EXT = /^[cm]?tsx?$/;
|
|
94
85
|
var RE_JS_EXT = /^[cm]?jsx?$/;
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JsxEmit } from 'typescript';
|
|
2
|
-
import { object, optional, union, literal,
|
|
2
|
+
import { object, optional, union, literal, number } from 'valibot';
|
|
3
3
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
@@ -29,18 +29,15 @@ __export(LanguagePreference_exports, {
|
|
|
29
29
|
DEFAULT_LANGUAGE_PREFERENCE: () => DEFAULT_LANGUAGE_PREFERENCE,
|
|
30
30
|
LanguagePreferenceSchema: () => LanguagePreferenceSchema
|
|
31
31
|
});
|
|
32
|
+
var DEFAULT_LANGUAGE_PREFERENCE = {
|
|
33
|
+
indentStyle: "space",
|
|
34
|
+
indentWidth: 2,
|
|
35
|
+
jsxQuoteStyle: "double",
|
|
36
|
+
quoteStyle: "single",
|
|
37
|
+
semicolons: "always",
|
|
38
|
+
trailingCommas: "all"
|
|
39
|
+
};
|
|
32
40
|
var LanguagePreferenceSchema = object({
|
|
33
|
-
bracketSameLine: optional(boolean(), false),
|
|
34
|
-
bracketSpacing: optional(boolean(), true),
|
|
35
|
-
endOfLine: optional(
|
|
36
|
-
union([
|
|
37
|
-
literal("lf"),
|
|
38
|
-
literal("crlf"),
|
|
39
|
-
literal("cr"),
|
|
40
|
-
literal("auto")
|
|
41
|
-
]),
|
|
42
|
-
"lf"
|
|
43
|
-
),
|
|
44
41
|
indentStyle: optional(
|
|
45
42
|
union([
|
|
46
43
|
literal("tab"),
|
|
@@ -49,44 +46,38 @@ var LanguagePreferenceSchema = object({
|
|
|
49
46
|
"space"
|
|
50
47
|
),
|
|
51
48
|
indentWidth: optional(number(), 2),
|
|
52
|
-
insertFinalNewline: optional(boolean(), true),
|
|
53
|
-
jsxQuoteStyle: optional(
|
|
54
|
-
union([
|
|
55
|
-
literal("preferDouble"),
|
|
56
|
-
literal("preferSingle")
|
|
57
|
-
]),
|
|
58
|
-
"preferDouble"
|
|
59
|
-
),
|
|
60
49
|
quoteStyle: optional(
|
|
61
50
|
union([
|
|
62
|
-
literal("
|
|
63
|
-
literal("
|
|
64
|
-
literal("preferDouble"),
|
|
65
|
-
literal("preferSingle")
|
|
51
|
+
literal("single"),
|
|
52
|
+
literal("double")
|
|
66
53
|
]),
|
|
67
|
-
"
|
|
54
|
+
"single"
|
|
68
55
|
),
|
|
69
|
-
|
|
56
|
+
semicolons: optional(
|
|
70
57
|
union([
|
|
71
58
|
literal("always"),
|
|
72
|
-
literal("
|
|
73
|
-
literal("asi")
|
|
59
|
+
literal("asNeeded")
|
|
74
60
|
]),
|
|
75
61
|
"always"
|
|
76
62
|
),
|
|
77
|
-
|
|
63
|
+
trailingCommas: optional(
|
|
78
64
|
union([
|
|
79
65
|
literal("all"),
|
|
80
66
|
literal("es5"),
|
|
81
67
|
literal("none")
|
|
82
68
|
]),
|
|
83
69
|
"all"
|
|
70
|
+
),
|
|
71
|
+
// JSX specific options
|
|
72
|
+
jsxQuoteStyle: optional(
|
|
73
|
+
union([
|
|
74
|
+
literal("single"),
|
|
75
|
+
literal("double")
|
|
76
|
+
]),
|
|
77
|
+
"double"
|
|
84
78
|
)
|
|
85
79
|
});
|
|
86
80
|
|
|
87
|
-
// src/LanguagePreference/LanguagePreference.ts
|
|
88
|
-
var DEFAULT_LANGUAGE_PREFERENCE = parse(LanguagePreferenceSchema, {});
|
|
89
|
-
|
|
90
81
|
// src/RegExp.ts
|
|
91
82
|
var RE_TS_EXT = /^[cm]?tsx?$/;
|
|
92
83
|
var RE_JS_EXT = /^[cm]?jsx?$/;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/kit",
|
|
3
|
-
"version": "1.40.2-next.
|
|
3
|
+
"version": "1.40.2-next.2",
|
|
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,12 +38,12 @@
|
|
|
38
38
|
"@typescript-eslint/utils": "^8.29.0",
|
|
39
39
|
"ts-pattern": "^5.7.0",
|
|
40
40
|
"valibot": "^1.0.0",
|
|
41
|
-
"@eslint-react/eff": "1.40.2-next.
|
|
41
|
+
"@eslint-react/eff": "1.40.2-next.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@tsconfig/node22": "^22.0.1",
|
|
45
45
|
"tsup": "^8.4.0",
|
|
46
|
-
"type-fest": "^4.
|
|
46
|
+
"type-fest": "^4.39.0",
|
|
47
47
|
"@local/configs": "0.0.0"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|