@eslint-react/kit 1.52.10-next.0 → 1.52.10-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/chunk-B9dir_RE.mjs +11 -0
- package/dist/index.d.mts +85 -127
- package/dist/index.d.ts +87 -127
- package/dist/index.js +303 -187
- package/dist/index.mjs +250 -185
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { TSESTree } from
|
|
1
|
+
import { unit } from "@eslint-react/eff";
|
|
2
|
+
import { z } from "zod/v4";
|
|
3
|
+
import * as typescript0 from "typescript";
|
|
4
|
+
import * as tseslint from "@typescript-eslint/utils/ts-eslint";
|
|
5
|
+
import { ReportDescriptor } from "@typescript-eslint/utils/ts-eslint";
|
|
6
|
+
import { TSESTree } from "@typescript-eslint/utils";
|
|
7
7
|
|
|
8
|
+
//#region src/types.d.ts
|
|
8
9
|
/**
|
|
9
10
|
* Rule severity.
|
|
10
11
|
* @since 0.0.1
|
|
@@ -40,46 +41,47 @@ type RuleContext<MessageIds extends string = string, Options extends readonly un
|
|
|
40
41
|
type RuleFeature = "CFG" | "DBG" | "FIX" | "MOD" | "TSC" | "EXP";
|
|
41
42
|
type RulePolicy = number;
|
|
42
43
|
type RuleSuggest<MessageIds extends string = string> = {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
messageId: MessageIds;
|
|
45
|
+
data?: Record<string, unknown>;
|
|
46
|
+
fix: tseslint.ReportFixFunction;
|
|
46
47
|
};
|
|
47
48
|
/**
|
|
48
49
|
* A collection of settings.
|
|
49
50
|
*/
|
|
50
51
|
interface SettingsConfig {
|
|
51
|
-
|
|
52
|
+
[key: string]: unknown;
|
|
52
53
|
}
|
|
53
54
|
interface CompatibleRule {
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
meta: Record<string, any>;
|
|
56
|
+
create: (...args: any[]) => any;
|
|
56
57
|
}
|
|
57
58
|
interface CompatiblePlugin {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
meta: {
|
|
60
|
+
name: string;
|
|
61
|
+
version: string;
|
|
62
|
+
};
|
|
63
|
+
rules: Record<string, CompatibleRule>;
|
|
63
64
|
}
|
|
64
65
|
interface CompatibleConfig {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
name?: string;
|
|
67
|
+
rules?: Record<string, RuleConfig>;
|
|
68
|
+
settings?: SettingsConfig;
|
|
68
69
|
}
|
|
69
|
-
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/JsxConfig/JsxConfig.d.ts
|
|
70
72
|
declare const JsxEmit: {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
readonly None: 0;
|
|
74
|
+
readonly Preserve: 1;
|
|
75
|
+
readonly React: 2;
|
|
76
|
+
readonly ReactNative: 3;
|
|
77
|
+
readonly ReactJSX: 4;
|
|
78
|
+
readonly ReactJSXDev: 5;
|
|
77
79
|
};
|
|
78
80
|
interface JsxConfig {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
jsx?: number;
|
|
82
|
+
jsxFactory?: string;
|
|
83
|
+
jsxFragmentFactory?: string;
|
|
84
|
+
jsxImportSource?: string;
|
|
83
85
|
}
|
|
84
86
|
/**
|
|
85
87
|
* Create a JsxConfig object
|
|
@@ -92,11 +94,11 @@ declare function make$2(): JsxConfig;
|
|
|
92
94
|
* @returns JsxConfig
|
|
93
95
|
*/
|
|
94
96
|
declare function getFromContext$1(context: RuleContext): {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
jsx: 4 | typescript0.JsxEmit;
|
|
98
|
+
jsxFactory: string;
|
|
99
|
+
jsxFragmentFactory: string;
|
|
100
|
+
jsxImportSource: string;
|
|
101
|
+
reactNamespace: string;
|
|
100
102
|
};
|
|
101
103
|
/**
|
|
102
104
|
* Get JsxConfig from annotation
|
|
@@ -104,26 +106,24 @@ declare function getFromContext$1(context: RuleContext): {
|
|
|
104
106
|
* @returns JsxConfig
|
|
105
107
|
*/
|
|
106
108
|
declare function getFromAnnotation(context: RuleContext): JsxConfig;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
declare const index$1_JsxEmit: typeof JsxEmit;
|
|
110
|
-
declare const index$1_getFromAnnotation: typeof getFromAnnotation;
|
|
111
|
-
declare namespace index$1 {
|
|
112
|
-
export { type index$1_JsxConfig as JsxConfig, index$1_JsxEmit as JsxEmit, index$1_getFromAnnotation as getFromAnnotation, getFromContext$1 as getFromContext, make$2 as make };
|
|
109
|
+
declare namespace index_d_exports {
|
|
110
|
+
export { JsxConfig, JsxEmit, getFromAnnotation, getFromContext$1 as getFromContext, make$2 as make };
|
|
113
111
|
}
|
|
114
|
-
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/LanguagePreference/LanguagePreferenceSchema.d.ts
|
|
115
114
|
/**
|
|
116
115
|
* @internal
|
|
117
116
|
*/
|
|
118
117
|
declare const LanguagePreferenceSchema: z.ZodObject<{
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
118
|
+
indentStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"tab">, z.ZodLiteral<"space">]>>;
|
|
119
|
+
indentWidth: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
quoteStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"single">, z.ZodLiteral<"double">]>>;
|
|
121
|
+
semicolons: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"always">, z.ZodLiteral<"asNeeded">]>>;
|
|
122
|
+
trailingCommas: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodLiteral<"es5">, z.ZodLiteral<"none">]>>;
|
|
123
|
+
jsxQuoteStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"single">, z.ZodLiteral<"double">]>>;
|
|
125
124
|
}, z.core.$strip>;
|
|
126
|
-
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region src/LanguagePreference/LanguagePreference.d.ts
|
|
127
127
|
/**
|
|
128
128
|
* @internal
|
|
129
129
|
*/
|
|
@@ -136,27 +136,23 @@ declare function make$1(): LanguagePreference;
|
|
|
136
136
|
* A default LanguagePreference object.
|
|
137
137
|
*/
|
|
138
138
|
declare const defaultLanguagePreference: {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
139
|
+
indentStyle?: "tab" | "space" | undefined;
|
|
140
|
+
indentWidth?: number | undefined;
|
|
141
|
+
quoteStyle?: "single" | "double" | undefined;
|
|
142
|
+
semicolons?: "always" | "asNeeded" | undefined;
|
|
143
|
+
trailingCommas?: "all" | "es5" | "none" | undefined;
|
|
144
|
+
jsxQuoteStyle?: "single" | "double" | undefined;
|
|
145
145
|
};
|
|
146
146
|
declare function getFromContext(): void;
|
|
147
147
|
declare module "@typescript-eslint/utils/ts-eslint" {
|
|
148
|
-
|
|
149
|
-
}
|
|
148
|
+
interface SharedConfigurationSettings {}
|
|
150
149
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
declare
|
|
155
|
-
|
|
156
|
-
declare namespace index {
|
|
157
|
-
export { type index_LanguagePreference as LanguagePreference, index_LanguagePreferenceSchema as LanguagePreferenceSchema, index_defaultLanguagePreference as defaultLanguagePreference, index_getFromContext as getFromContext, make$1 as make };
|
|
150
|
+
declare namespace index_d_exports$1 {
|
|
151
|
+
export { LanguagePreference, LanguagePreferenceSchema, defaultLanguagePreference, getFromContext, make$1 as make };
|
|
152
|
+
}
|
|
153
|
+
declare namespace RegExp_d_exports {
|
|
154
|
+
export { ANNOTATION_JSX, ANNOTATION_JSX_FRAG, ANNOTATION_JSX_IMPORT_SOURCE, ANNOTATION_JSX_RUNTIME, CAMEL_CASE, COMPONENT_NAME, COMPONENT_NAME_LOOSE, CONSTANT_CASE, HOOK_NAME, HTML_TAG, JAVASCRIPT_PROTOCOL, JS_EXT, JS_IDENTIFIER, KEBAB_CASE, PASCAL_CASE, REGEXP_STR, SNAKE_CASE, TS_EXT, isRegExp, toRegExp };
|
|
158
155
|
}
|
|
159
|
-
|
|
160
156
|
/**
|
|
161
157
|
* Regular expressions for matching a HTML tag name
|
|
162
158
|
*/
|
|
@@ -235,7 +231,7 @@ declare const HOOK_NAME: RegExp;
|
|
|
235
231
|
* @returns Returns the `RegExp`.
|
|
236
232
|
*/
|
|
237
233
|
declare function toRegExp(string: string): {
|
|
238
|
-
|
|
234
|
+
test(s: string): boolean;
|
|
239
235
|
};
|
|
240
236
|
/**
|
|
241
237
|
* Checks whether given string is regexp string
|
|
@@ -243,82 +239,44 @@ declare function toRegExp(string: string): {
|
|
|
243
239
|
* @returns boolean
|
|
244
240
|
*/
|
|
245
241
|
declare function isRegExp(string: string): boolean;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
declare const RegExp$1_ANNOTATION_JSX_FRAG: typeof ANNOTATION_JSX_FRAG;
|
|
249
|
-
declare const RegExp$1_ANNOTATION_JSX_IMPORT_SOURCE: typeof ANNOTATION_JSX_IMPORT_SOURCE;
|
|
250
|
-
declare const RegExp$1_ANNOTATION_JSX_RUNTIME: typeof ANNOTATION_JSX_RUNTIME;
|
|
251
|
-
declare const RegExp$1_CAMEL_CASE: typeof CAMEL_CASE;
|
|
252
|
-
declare const RegExp$1_COMPONENT_NAME: typeof COMPONENT_NAME;
|
|
253
|
-
declare const RegExp$1_COMPONENT_NAME_LOOSE: typeof COMPONENT_NAME_LOOSE;
|
|
254
|
-
declare const RegExp$1_CONSTANT_CASE: typeof CONSTANT_CASE;
|
|
255
|
-
declare const RegExp$1_HOOK_NAME: typeof HOOK_NAME;
|
|
256
|
-
declare const RegExp$1_HTML_TAG: typeof HTML_TAG;
|
|
257
|
-
declare const RegExp$1_JAVASCRIPT_PROTOCOL: typeof JAVASCRIPT_PROTOCOL;
|
|
258
|
-
declare const RegExp$1_JS_EXT: typeof JS_EXT;
|
|
259
|
-
declare const RegExp$1_JS_IDENTIFIER: typeof JS_IDENTIFIER;
|
|
260
|
-
declare const RegExp$1_KEBAB_CASE: typeof KEBAB_CASE;
|
|
261
|
-
declare const RegExp$1_PASCAL_CASE: typeof PASCAL_CASE;
|
|
262
|
-
declare const RegExp$1_REGEXP_STR: typeof REGEXP_STR;
|
|
263
|
-
declare const RegExp$1_SNAKE_CASE: typeof SNAKE_CASE;
|
|
264
|
-
declare const RegExp$1_TS_EXT: typeof TS_EXT;
|
|
265
|
-
declare const RegExp$1_isRegExp: typeof isRegExp;
|
|
266
|
-
declare const RegExp$1_toRegExp: typeof toRegExp;
|
|
267
|
-
declare namespace RegExp$1 {
|
|
268
|
-
export { RegExp$1_ANNOTATION_JSX as ANNOTATION_JSX, RegExp$1_ANNOTATION_JSX_FRAG as ANNOTATION_JSX_FRAG, RegExp$1_ANNOTATION_JSX_IMPORT_SOURCE as ANNOTATION_JSX_IMPORT_SOURCE, RegExp$1_ANNOTATION_JSX_RUNTIME as ANNOTATION_JSX_RUNTIME, RegExp$1_CAMEL_CASE as CAMEL_CASE, RegExp$1_COMPONENT_NAME as COMPONENT_NAME, RegExp$1_COMPONENT_NAME_LOOSE as COMPONENT_NAME_LOOSE, RegExp$1_CONSTANT_CASE as CONSTANT_CASE, RegExp$1_HOOK_NAME as HOOK_NAME, RegExp$1_HTML_TAG as HTML_TAG, RegExp$1_JAVASCRIPT_PROTOCOL as JAVASCRIPT_PROTOCOL, RegExp$1_JS_EXT as JS_EXT, RegExp$1_JS_IDENTIFIER as JS_IDENTIFIER, RegExp$1_KEBAB_CASE as KEBAB_CASE, RegExp$1_PASCAL_CASE as PASCAL_CASE, RegExp$1_REGEXP_STR as REGEXP_STR, RegExp$1_SNAKE_CASE as SNAKE_CASE, RegExp$1_TS_EXT as TS_EXT, RegExp$1_isRegExp as isRegExp, RegExp$1_toRegExp as toRegExp };
|
|
242
|
+
declare namespace Reporter_d_exports {
|
|
243
|
+
export { Reporter, make, send, sendOrElse };
|
|
269
244
|
}
|
|
270
|
-
|
|
271
245
|
interface Reporter<TMessageID extends string> {
|
|
272
|
-
|
|
273
|
-
|
|
246
|
+
send: (descriptor: unit | null | ReportDescriptor<TMessageID>) => void;
|
|
247
|
+
sendOrElse: <TElse>(descriptor: unit | null | ReportDescriptor<TMessageID>, cb: () => TElse) => unit | TElse;
|
|
274
248
|
}
|
|
275
249
|
declare const send: {
|
|
276
|
-
|
|
277
|
-
|
|
250
|
+
<TMessageID extends string>(context: RuleContext, descriptor: unit | null | ReportDescriptor<TMessageID>): void;
|
|
251
|
+
<TMessageID extends string>(context: RuleContext): (descriptor: unit | null | ReportDescriptor<TMessageID>) => void;
|
|
278
252
|
};
|
|
279
253
|
declare const sendOrElse: {
|
|
280
|
-
|
|
281
|
-
|
|
254
|
+
<TMessageID extends string, TElse>(context: RuleContext, descriptor: unit | null | ReportDescriptor<TMessageID>, cb: () => TElse): unit | TElse;
|
|
255
|
+
<TMessageID extends string, TElse>(context: RuleContext): (descriptor: unit | null | ReportDescriptor<TMessageID>) => (cb: () => TElse) => unit | TElse;
|
|
282
256
|
};
|
|
283
257
|
declare function make<TMessageID extends string>(context: RuleContext): Reporter<TMessageID>;
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
declare const Reporter$1_make: typeof make;
|
|
287
|
-
declare const Reporter$1_send: typeof send;
|
|
288
|
-
declare const Reporter$1_sendOrElse: typeof sendOrElse;
|
|
289
|
-
declare namespace Reporter$1 {
|
|
290
|
-
export { type Reporter$1_Reporter as Reporter, Reporter$1_make as make, Reporter$1_send as send, Reporter$1_sendOrElse as sendOrElse };
|
|
258
|
+
declare namespace Selector_d_exports {
|
|
259
|
+
export { DISPLAY_NAME_ASSIGNMENT_EXPRESSION, DisplayNameAssignmentExpression, IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION, ImplicitReturnArrowFunctionExpression, OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR, ObjectDestructuringVariableDeclarator };
|
|
291
260
|
}
|
|
292
|
-
|
|
293
261
|
type ImplicitReturnArrowFunctionExpression = TSESTree.ArrowFunctionExpression & {
|
|
294
|
-
|
|
262
|
+
body: TSESTree.Expression;
|
|
295
263
|
};
|
|
296
264
|
type ObjectDestructuringVariableDeclarator = TSESTree.VariableDeclarator & {
|
|
297
|
-
|
|
298
|
-
|
|
265
|
+
id: TSESTree.ObjectPattern;
|
|
266
|
+
init: TSESTree.Identifier;
|
|
299
267
|
};
|
|
300
268
|
type DisplayNameAssignmentExpression = TSESTree.AssignmentExpression & {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
};
|
|
269
|
+
type: "AssignmentExpression";
|
|
270
|
+
left: TSESTree.MemberExpression & {
|
|
271
|
+
property: TSESTree.Identifier & {
|
|
272
|
+
name: "displayName";
|
|
306
273
|
};
|
|
307
|
-
|
|
308
|
-
|
|
274
|
+
};
|
|
275
|
+
operator: "=";
|
|
276
|
+
right: TSESTree.Literal;
|
|
309
277
|
};
|
|
310
278
|
declare const IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION = "ArrowFunctionExpression[body.type!='BlockStatement']";
|
|
311
279
|
declare const OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR: string;
|
|
312
280
|
declare const DISPLAY_NAME_ASSIGNMENT_EXPRESSION: string;
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
type Selector_DisplayNameAssignmentExpression = DisplayNameAssignmentExpression;
|
|
316
|
-
declare const Selector_IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION: typeof IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION;
|
|
317
|
-
type Selector_ImplicitReturnArrowFunctionExpression = ImplicitReturnArrowFunctionExpression;
|
|
318
|
-
declare const Selector_OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR: typeof OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR;
|
|
319
|
-
type Selector_ObjectDestructuringVariableDeclarator = ObjectDestructuringVariableDeclarator;
|
|
320
|
-
declare namespace Selector {
|
|
321
|
-
export { Selector_DISPLAY_NAME_ASSIGNMENT_EXPRESSION as DISPLAY_NAME_ASSIGNMENT_EXPRESSION, type Selector_DisplayNameAssignmentExpression as DisplayNameAssignmentExpression, Selector_IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION as IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION, type Selector_ImplicitReturnArrowFunctionExpression as ImplicitReturnArrowFunctionExpression, Selector_OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR as OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR, type Selector_ObjectDestructuringVariableDeclarator as ObjectDestructuringVariableDeclarator };
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
export { type CompatibleConfig, type CompatiblePlugin, type CompatibleRule, index$1 as JsxConfig, index as LanguagePreference, RegExp$1 as RegExp, Reporter$1 as Reporter, type RuleConfig, type RuleContext, type RuleFeature, type RulePolicy, type RuleSuggest, Selector, type SettingsConfig, type Severity, type SeverityLevel, type SeverityName };
|
|
281
|
+
//#endregion
|
|
282
|
+
export { CompatibleConfig, CompatiblePlugin, CompatibleRule, index_d_exports as JsxConfig, index_d_exports$1 as LanguagePreference, RegExp_d_exports as RegExp, Reporter_d_exports as Reporter, RuleConfig, RuleContext, RuleFeature, RulePolicy, RuleSuggest, Selector_d_exports as Selector, SettingsConfig, Severity, SeverityLevel, SeverityName };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as tseslint from
|
|
3
|
-
import { ReportDescriptor } from
|
|
4
|
-
import { z } from
|
|
5
|
-
import { unit } from
|
|
6
|
-
import { TSESTree } from
|
|
1
|
+
import * as typescript0 from "typescript";
|
|
2
|
+
import * as tseslint from "@typescript-eslint/utils/ts-eslint";
|
|
3
|
+
import { ReportDescriptor } from "@typescript-eslint/utils/ts-eslint";
|
|
4
|
+
import { z } from "zod/v4";
|
|
5
|
+
import { unit } from "@eslint-react/eff";
|
|
6
|
+
import { TSESTree } from "@typescript-eslint/utils";
|
|
7
7
|
|
|
8
|
+
//#region rolldown:runtime
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/types.d.ts
|
|
8
11
|
/**
|
|
9
12
|
* Rule severity.
|
|
10
13
|
* @since 0.0.1
|
|
@@ -40,46 +43,47 @@ type RuleContext<MessageIds extends string = string, Options extends readonly un
|
|
|
40
43
|
type RuleFeature = "CFG" | "DBG" | "FIX" | "MOD" | "TSC" | "EXP";
|
|
41
44
|
type RulePolicy = number;
|
|
42
45
|
type RuleSuggest<MessageIds extends string = string> = {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
+
messageId: MessageIds;
|
|
47
|
+
data?: Record<string, unknown>;
|
|
48
|
+
fix: tseslint.ReportFixFunction;
|
|
46
49
|
};
|
|
47
50
|
/**
|
|
48
51
|
* A collection of settings.
|
|
49
52
|
*/
|
|
50
53
|
interface SettingsConfig {
|
|
51
|
-
|
|
54
|
+
[key: string]: unknown;
|
|
52
55
|
}
|
|
53
56
|
interface CompatibleRule {
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
meta: Record<string, any>;
|
|
58
|
+
create: (...args: any[]) => any;
|
|
56
59
|
}
|
|
57
60
|
interface CompatiblePlugin {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
meta: {
|
|
62
|
+
name: string;
|
|
63
|
+
version: string;
|
|
64
|
+
};
|
|
65
|
+
rules: Record<string, CompatibleRule>;
|
|
63
66
|
}
|
|
64
67
|
interface CompatibleConfig {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
name?: string;
|
|
69
|
+
rules?: Record<string, RuleConfig>;
|
|
70
|
+
settings?: SettingsConfig;
|
|
68
71
|
}
|
|
69
|
-
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/JsxConfig/JsxConfig.d.ts
|
|
70
74
|
declare const JsxEmit: {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
readonly None: 0;
|
|
76
|
+
readonly Preserve: 1;
|
|
77
|
+
readonly React: 2;
|
|
78
|
+
readonly ReactNative: 3;
|
|
79
|
+
readonly ReactJSX: 4;
|
|
80
|
+
readonly ReactJSXDev: 5;
|
|
77
81
|
};
|
|
78
82
|
interface JsxConfig {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
jsx?: number;
|
|
84
|
+
jsxFactory?: string;
|
|
85
|
+
jsxFragmentFactory?: string;
|
|
86
|
+
jsxImportSource?: string;
|
|
83
87
|
}
|
|
84
88
|
/**
|
|
85
89
|
* Create a JsxConfig object
|
|
@@ -92,11 +96,11 @@ declare function make$2(): JsxConfig;
|
|
|
92
96
|
* @returns JsxConfig
|
|
93
97
|
*/
|
|
94
98
|
declare function getFromContext$1(context: RuleContext): {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
jsx: 4 | typescript0.JsxEmit;
|
|
100
|
+
jsxFactory: string;
|
|
101
|
+
jsxFragmentFactory: string;
|
|
102
|
+
jsxImportSource: string;
|
|
103
|
+
reactNamespace: string;
|
|
100
104
|
};
|
|
101
105
|
/**
|
|
102
106
|
* Get JsxConfig from annotation
|
|
@@ -104,26 +108,24 @@ declare function getFromContext$1(context: RuleContext): {
|
|
|
104
108
|
* @returns JsxConfig
|
|
105
109
|
*/
|
|
106
110
|
declare function getFromAnnotation(context: RuleContext): JsxConfig;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
declare const index$1_JsxEmit: typeof JsxEmit;
|
|
110
|
-
declare const index$1_getFromAnnotation: typeof getFromAnnotation;
|
|
111
|
-
declare namespace index$1 {
|
|
112
|
-
export { type index$1_JsxConfig as JsxConfig, index$1_JsxEmit as JsxEmit, index$1_getFromAnnotation as getFromAnnotation, getFromContext$1 as getFromContext, make$2 as make };
|
|
111
|
+
declare namespace index_d_exports {
|
|
112
|
+
export { JsxConfig, JsxEmit, getFromAnnotation, getFromContext$1 as getFromContext, make$2 as make };
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region src/LanguagePreference/LanguagePreferenceSchema.d.ts
|
|
115
116
|
/**
|
|
116
117
|
* @internal
|
|
117
118
|
*/
|
|
118
119
|
declare const LanguagePreferenceSchema: z.ZodObject<{
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
120
|
+
indentStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"tab">, z.ZodLiteral<"space">]>>;
|
|
121
|
+
indentWidth: z.ZodOptional<z.ZodNumber>;
|
|
122
|
+
quoteStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"single">, z.ZodLiteral<"double">]>>;
|
|
123
|
+
semicolons: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"always">, z.ZodLiteral<"asNeeded">]>>;
|
|
124
|
+
trailingCommas: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodLiteral<"es5">, z.ZodLiteral<"none">]>>;
|
|
125
|
+
jsxQuoteStyle: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"single">, z.ZodLiteral<"double">]>>;
|
|
125
126
|
}, z.core.$strip>;
|
|
126
|
-
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/LanguagePreference/LanguagePreference.d.ts
|
|
127
129
|
/**
|
|
128
130
|
* @internal
|
|
129
131
|
*/
|
|
@@ -136,27 +138,23 @@ declare function make$1(): LanguagePreference;
|
|
|
136
138
|
* A default LanguagePreference object.
|
|
137
139
|
*/
|
|
138
140
|
declare const defaultLanguagePreference: {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
indentStyle?: "tab" | "space" | undefined;
|
|
142
|
+
indentWidth?: number | undefined;
|
|
143
|
+
quoteStyle?: "single" | "double" | undefined;
|
|
144
|
+
semicolons?: "always" | "asNeeded" | undefined;
|
|
145
|
+
trailingCommas?: "all" | "es5" | "none" | undefined;
|
|
146
|
+
jsxQuoteStyle?: "single" | "double" | undefined;
|
|
145
147
|
};
|
|
146
148
|
declare function getFromContext(): void;
|
|
147
149
|
declare module "@typescript-eslint/utils/ts-eslint" {
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
+
interface SharedConfigurationSettings {}
|
|
150
151
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
declare
|
|
155
|
-
|
|
156
|
-
declare namespace index {
|
|
157
|
-
export { type index_LanguagePreference as LanguagePreference, index_LanguagePreferenceSchema as LanguagePreferenceSchema, index_defaultLanguagePreference as defaultLanguagePreference, index_getFromContext as getFromContext, make$1 as make };
|
|
152
|
+
declare namespace index_d_exports$1 {
|
|
153
|
+
export { LanguagePreference, LanguagePreferenceSchema, defaultLanguagePreference, getFromContext, make$1 as make };
|
|
154
|
+
}
|
|
155
|
+
declare namespace RegExp_d_exports {
|
|
156
|
+
export { ANNOTATION_JSX, ANNOTATION_JSX_FRAG, ANNOTATION_JSX_IMPORT_SOURCE, ANNOTATION_JSX_RUNTIME, CAMEL_CASE, COMPONENT_NAME, COMPONENT_NAME_LOOSE, CONSTANT_CASE, HOOK_NAME, HTML_TAG, JAVASCRIPT_PROTOCOL, JS_EXT, JS_IDENTIFIER, KEBAB_CASE, PASCAL_CASE, REGEXP_STR, SNAKE_CASE, TS_EXT, isRegExp, toRegExp };
|
|
158
157
|
}
|
|
159
|
-
|
|
160
158
|
/**
|
|
161
159
|
* Regular expressions for matching a HTML tag name
|
|
162
160
|
*/
|
|
@@ -235,7 +233,7 @@ declare const HOOK_NAME: RegExp;
|
|
|
235
233
|
* @returns Returns the `RegExp`.
|
|
236
234
|
*/
|
|
237
235
|
declare function toRegExp(string: string): {
|
|
238
|
-
|
|
236
|
+
test(s: string): boolean;
|
|
239
237
|
};
|
|
240
238
|
/**
|
|
241
239
|
* Checks whether given string is regexp string
|
|
@@ -243,82 +241,44 @@ declare function toRegExp(string: string): {
|
|
|
243
241
|
* @returns boolean
|
|
244
242
|
*/
|
|
245
243
|
declare function isRegExp(string: string): boolean;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
declare const RegExp$1_ANNOTATION_JSX_FRAG: typeof ANNOTATION_JSX_FRAG;
|
|
249
|
-
declare const RegExp$1_ANNOTATION_JSX_IMPORT_SOURCE: typeof ANNOTATION_JSX_IMPORT_SOURCE;
|
|
250
|
-
declare const RegExp$1_ANNOTATION_JSX_RUNTIME: typeof ANNOTATION_JSX_RUNTIME;
|
|
251
|
-
declare const RegExp$1_CAMEL_CASE: typeof CAMEL_CASE;
|
|
252
|
-
declare const RegExp$1_COMPONENT_NAME: typeof COMPONENT_NAME;
|
|
253
|
-
declare const RegExp$1_COMPONENT_NAME_LOOSE: typeof COMPONENT_NAME_LOOSE;
|
|
254
|
-
declare const RegExp$1_CONSTANT_CASE: typeof CONSTANT_CASE;
|
|
255
|
-
declare const RegExp$1_HOOK_NAME: typeof HOOK_NAME;
|
|
256
|
-
declare const RegExp$1_HTML_TAG: typeof HTML_TAG;
|
|
257
|
-
declare const RegExp$1_JAVASCRIPT_PROTOCOL: typeof JAVASCRIPT_PROTOCOL;
|
|
258
|
-
declare const RegExp$1_JS_EXT: typeof JS_EXT;
|
|
259
|
-
declare const RegExp$1_JS_IDENTIFIER: typeof JS_IDENTIFIER;
|
|
260
|
-
declare const RegExp$1_KEBAB_CASE: typeof KEBAB_CASE;
|
|
261
|
-
declare const RegExp$1_PASCAL_CASE: typeof PASCAL_CASE;
|
|
262
|
-
declare const RegExp$1_REGEXP_STR: typeof REGEXP_STR;
|
|
263
|
-
declare const RegExp$1_SNAKE_CASE: typeof SNAKE_CASE;
|
|
264
|
-
declare const RegExp$1_TS_EXT: typeof TS_EXT;
|
|
265
|
-
declare const RegExp$1_isRegExp: typeof isRegExp;
|
|
266
|
-
declare const RegExp$1_toRegExp: typeof toRegExp;
|
|
267
|
-
declare namespace RegExp$1 {
|
|
268
|
-
export { RegExp$1_ANNOTATION_JSX as ANNOTATION_JSX, RegExp$1_ANNOTATION_JSX_FRAG as ANNOTATION_JSX_FRAG, RegExp$1_ANNOTATION_JSX_IMPORT_SOURCE as ANNOTATION_JSX_IMPORT_SOURCE, RegExp$1_ANNOTATION_JSX_RUNTIME as ANNOTATION_JSX_RUNTIME, RegExp$1_CAMEL_CASE as CAMEL_CASE, RegExp$1_COMPONENT_NAME as COMPONENT_NAME, RegExp$1_COMPONENT_NAME_LOOSE as COMPONENT_NAME_LOOSE, RegExp$1_CONSTANT_CASE as CONSTANT_CASE, RegExp$1_HOOK_NAME as HOOK_NAME, RegExp$1_HTML_TAG as HTML_TAG, RegExp$1_JAVASCRIPT_PROTOCOL as JAVASCRIPT_PROTOCOL, RegExp$1_JS_EXT as JS_EXT, RegExp$1_JS_IDENTIFIER as JS_IDENTIFIER, RegExp$1_KEBAB_CASE as KEBAB_CASE, RegExp$1_PASCAL_CASE as PASCAL_CASE, RegExp$1_REGEXP_STR as REGEXP_STR, RegExp$1_SNAKE_CASE as SNAKE_CASE, RegExp$1_TS_EXT as TS_EXT, RegExp$1_isRegExp as isRegExp, RegExp$1_toRegExp as toRegExp };
|
|
244
|
+
declare namespace Reporter_d_exports {
|
|
245
|
+
export { Reporter, make, send, sendOrElse };
|
|
269
246
|
}
|
|
270
|
-
|
|
271
247
|
interface Reporter<TMessageID extends string> {
|
|
272
|
-
|
|
273
|
-
|
|
248
|
+
send: (descriptor: unit | null | ReportDescriptor<TMessageID>) => void;
|
|
249
|
+
sendOrElse: <TElse>(descriptor: unit | null | ReportDescriptor<TMessageID>, cb: () => TElse) => unit | TElse;
|
|
274
250
|
}
|
|
275
251
|
declare const send: {
|
|
276
|
-
|
|
277
|
-
|
|
252
|
+
<TMessageID extends string>(context: RuleContext, descriptor: unit | null | ReportDescriptor<TMessageID>): void;
|
|
253
|
+
<TMessageID extends string>(context: RuleContext): (descriptor: unit | null | ReportDescriptor<TMessageID>) => void;
|
|
278
254
|
};
|
|
279
255
|
declare const sendOrElse: {
|
|
280
|
-
|
|
281
|
-
|
|
256
|
+
<TMessageID extends string, TElse>(context: RuleContext, descriptor: unit | null | ReportDescriptor<TMessageID>, cb: () => TElse): unit | TElse;
|
|
257
|
+
<TMessageID extends string, TElse>(context: RuleContext): (descriptor: unit | null | ReportDescriptor<TMessageID>) => (cb: () => TElse) => unit | TElse;
|
|
282
258
|
};
|
|
283
259
|
declare function make<TMessageID extends string>(context: RuleContext): Reporter<TMessageID>;
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
declare const Reporter$1_make: typeof make;
|
|
287
|
-
declare const Reporter$1_send: typeof send;
|
|
288
|
-
declare const Reporter$1_sendOrElse: typeof sendOrElse;
|
|
289
|
-
declare namespace Reporter$1 {
|
|
290
|
-
export { type Reporter$1_Reporter as Reporter, Reporter$1_make as make, Reporter$1_send as send, Reporter$1_sendOrElse as sendOrElse };
|
|
260
|
+
declare namespace Selector_d_exports {
|
|
261
|
+
export { DISPLAY_NAME_ASSIGNMENT_EXPRESSION, DisplayNameAssignmentExpression, IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION, ImplicitReturnArrowFunctionExpression, OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR, ObjectDestructuringVariableDeclarator };
|
|
291
262
|
}
|
|
292
|
-
|
|
293
263
|
type ImplicitReturnArrowFunctionExpression = TSESTree.ArrowFunctionExpression & {
|
|
294
|
-
|
|
264
|
+
body: TSESTree.Expression;
|
|
295
265
|
};
|
|
296
266
|
type ObjectDestructuringVariableDeclarator = TSESTree.VariableDeclarator & {
|
|
297
|
-
|
|
298
|
-
|
|
267
|
+
id: TSESTree.ObjectPattern;
|
|
268
|
+
init: TSESTree.Identifier;
|
|
299
269
|
};
|
|
300
270
|
type DisplayNameAssignmentExpression = TSESTree.AssignmentExpression & {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
};
|
|
271
|
+
type: "AssignmentExpression";
|
|
272
|
+
left: TSESTree.MemberExpression & {
|
|
273
|
+
property: TSESTree.Identifier & {
|
|
274
|
+
name: "displayName";
|
|
306
275
|
};
|
|
307
|
-
|
|
308
|
-
|
|
276
|
+
};
|
|
277
|
+
operator: "=";
|
|
278
|
+
right: TSESTree.Literal;
|
|
309
279
|
};
|
|
310
280
|
declare const IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION = "ArrowFunctionExpression[body.type!='BlockStatement']";
|
|
311
281
|
declare const OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR: string;
|
|
312
282
|
declare const DISPLAY_NAME_ASSIGNMENT_EXPRESSION: string;
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
type Selector_DisplayNameAssignmentExpression = DisplayNameAssignmentExpression;
|
|
316
|
-
declare const Selector_IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION: typeof IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION;
|
|
317
|
-
type Selector_ImplicitReturnArrowFunctionExpression = ImplicitReturnArrowFunctionExpression;
|
|
318
|
-
declare const Selector_OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR: typeof OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR;
|
|
319
|
-
type Selector_ObjectDestructuringVariableDeclarator = ObjectDestructuringVariableDeclarator;
|
|
320
|
-
declare namespace Selector {
|
|
321
|
-
export { Selector_DISPLAY_NAME_ASSIGNMENT_EXPRESSION as DISPLAY_NAME_ASSIGNMENT_EXPRESSION, type Selector_DisplayNameAssignmentExpression as DisplayNameAssignmentExpression, Selector_IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION as IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION, type Selector_ImplicitReturnArrowFunctionExpression as ImplicitReturnArrowFunctionExpression, Selector_OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR as OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR, type Selector_ObjectDestructuringVariableDeclarator as ObjectDestructuringVariableDeclarator };
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
export { type CompatibleConfig, type CompatiblePlugin, type CompatibleRule, index$1 as JsxConfig, index as LanguagePreference, RegExp$1 as RegExp, Reporter$1 as Reporter, type RuleConfig, type RuleContext, type RuleFeature, type RulePolicy, type RuleSuggest, Selector, type SettingsConfig, type Severity, type SeverityLevel, type SeverityName };
|
|
283
|
+
//#endregion
|
|
284
|
+
export { CompatibleConfig, CompatiblePlugin, CompatibleRule, index_d_exports as JsxConfig, index_d_exports$1 as LanguagePreference, RegExp_d_exports as RegExp, Reporter_d_exports as Reporter, RuleConfig, RuleContext, RuleFeature, RulePolicy, RuleSuggest, Selector_d_exports as Selector, SettingsConfig, Severity, SeverityLevel, SeverityName };
|