@eslint-react/kit 1.52.10-next.0 → 1.52.10-next.1
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 +4 -4
package/dist/index.js
CHANGED
|
@@ -1,225 +1,341 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var eff = require('@eslint-react/eff');
|
|
4
|
-
var v4 = require('zod/v4');
|
|
5
|
-
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
6
3
|
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
8
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
16
|
+
key = keys[i];
|
|
17
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
18
|
+
get: ((k) => from[k]).bind(null, key),
|
|
19
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
10
23
|
};
|
|
24
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
25
|
+
value: mod,
|
|
26
|
+
enumerable: true
|
|
27
|
+
}) : target, mod));
|
|
11
28
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
JsxEmit: () => JsxEmit,
|
|
16
|
-
getFromAnnotation: () => getFromAnnotation,
|
|
17
|
-
getFromContext: () => getFromContext,
|
|
18
|
-
make: () => make
|
|
19
|
-
});
|
|
29
|
+
//#endregion
|
|
30
|
+
const __eslint_react_eff = __toESM(require("@eslint-react/eff"));
|
|
31
|
+
const zod_v4 = __toESM(require("zod/v4"));
|
|
20
32
|
|
|
21
|
-
|
|
33
|
+
//#region src/RegExp.ts
|
|
22
34
|
var RegExp_exports = {};
|
|
23
35
|
__export(RegExp_exports, {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
ANNOTATION_JSX: () => ANNOTATION_JSX,
|
|
37
|
+
ANNOTATION_JSX_FRAG: () => ANNOTATION_JSX_FRAG,
|
|
38
|
+
ANNOTATION_JSX_IMPORT_SOURCE: () => ANNOTATION_JSX_IMPORT_SOURCE,
|
|
39
|
+
ANNOTATION_JSX_RUNTIME: () => ANNOTATION_JSX_RUNTIME,
|
|
40
|
+
CAMEL_CASE: () => CAMEL_CASE,
|
|
41
|
+
COMPONENT_NAME: () => COMPONENT_NAME,
|
|
42
|
+
COMPONENT_NAME_LOOSE: () => COMPONENT_NAME_LOOSE,
|
|
43
|
+
CONSTANT_CASE: () => CONSTANT_CASE,
|
|
44
|
+
HOOK_NAME: () => HOOK_NAME,
|
|
45
|
+
HTML_TAG: () => HTML_TAG,
|
|
46
|
+
JAVASCRIPT_PROTOCOL: () => JAVASCRIPT_PROTOCOL,
|
|
47
|
+
JS_EXT: () => JS_EXT,
|
|
48
|
+
JS_IDENTIFIER: () => JS_IDENTIFIER,
|
|
49
|
+
KEBAB_CASE: () => KEBAB_CASE,
|
|
50
|
+
PASCAL_CASE: () => PASCAL_CASE,
|
|
51
|
+
REGEXP_STR: () => REGEXP_STR,
|
|
52
|
+
SNAKE_CASE: () => SNAKE_CASE,
|
|
53
|
+
TS_EXT: () => TS_EXT,
|
|
54
|
+
isRegExp: () => isRegExp,
|
|
55
|
+
toRegExp: () => toRegExp
|
|
44
56
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
/**
|
|
58
|
+
* Regular expressions for matching a HTML tag name
|
|
59
|
+
*/
|
|
60
|
+
const HTML_TAG = /^[a-z][^-]*$/u;
|
|
61
|
+
/**
|
|
62
|
+
* Regular expression for matching a TypeScript file extension.
|
|
63
|
+
*/
|
|
64
|
+
const TS_EXT = /^[cm]?tsx?$/u;
|
|
65
|
+
/**
|
|
66
|
+
* Regular expression for matching a JavaScript file extension.
|
|
67
|
+
*/
|
|
68
|
+
const JS_EXT = /^[cm]?jsx?$/u;
|
|
69
|
+
/**
|
|
70
|
+
* Regular expression for matching a PascalCase string.
|
|
71
|
+
*/
|
|
72
|
+
const PASCAL_CASE = /^[A-Z][\dA-Za-z]*$/u;
|
|
73
|
+
/**
|
|
74
|
+
* Regular expression for matching a camelCase string.
|
|
75
|
+
*/
|
|
76
|
+
const CAMEL_CASE = /^[a-z][\dA-Za-z]*$/u;
|
|
77
|
+
/**
|
|
78
|
+
* Regular expression for matching a kebab-case string.
|
|
79
|
+
*/
|
|
80
|
+
const KEBAB_CASE = /^[a-z][\d\-a-z]*$/u;
|
|
81
|
+
/**
|
|
82
|
+
* Regular expression for matching a snake_case string.
|
|
83
|
+
*/
|
|
84
|
+
const SNAKE_CASE = /^[a-z][\d_a-z]*$/u;
|
|
85
|
+
/**
|
|
86
|
+
* Regular expression for matching a CONSTANT_CASE string.
|
|
87
|
+
*/
|
|
88
|
+
const CONSTANT_CASE = /^[A-Z][\d_A-Z]*$/u;
|
|
89
|
+
const JAVASCRIPT_PROTOCOL = /^[\u0000-\u001F ]*j[\t\n\r]*a[\t\n\r]*v[\t\n\r]*a[\t\n\r]*s[\t\n\r]*c[\t\n\r]*r[\t\n\r]*i[\t\n\r]*p[\t\n\r]*t[\t\n\r]*:/iu;
|
|
90
|
+
/**
|
|
91
|
+
* Regular expression for matching a valid JavaScript identifier.
|
|
92
|
+
*/
|
|
93
|
+
const JS_IDENTIFIER = /^[_$a-z][\w$]*$/i;
|
|
94
|
+
/**
|
|
95
|
+
* Regular expression for matching a RegExp string.
|
|
96
|
+
*/
|
|
97
|
+
const REGEXP_STR = /^\/(.+)\/([A-Za-z]*)$/u;
|
|
98
|
+
/**
|
|
99
|
+
* Regular expression for matching a `@jsx` annotation comment.
|
|
100
|
+
*/
|
|
101
|
+
const ANNOTATION_JSX = /@jsx\s+(\S+)/u;
|
|
102
|
+
/**
|
|
103
|
+
* Regular expression for matching a `@jsxFrag` annotation comment.
|
|
104
|
+
*/
|
|
105
|
+
const ANNOTATION_JSX_FRAG = /@jsxFrag\s+(\S+)/u;
|
|
106
|
+
/**
|
|
107
|
+
* Regular expression for matching a `@jsxRuntime` annotation comment.
|
|
108
|
+
*/
|
|
109
|
+
const ANNOTATION_JSX_RUNTIME = /@jsxRuntime\s+(\S+)/u;
|
|
110
|
+
/**
|
|
111
|
+
* Regular expression for matching a `@jsxImportSource` annotation comment.
|
|
112
|
+
*/
|
|
113
|
+
const ANNOTATION_JSX_IMPORT_SOURCE = /@jsxImportSource\s+(\S+)/u;
|
|
114
|
+
/**
|
|
115
|
+
* Regular expression for matching a React component name.
|
|
116
|
+
*/
|
|
117
|
+
const COMPONENT_NAME = /^[A-Z]/u;
|
|
118
|
+
/**
|
|
119
|
+
* Regular expression for matching a React component name (loose).
|
|
120
|
+
*/
|
|
121
|
+
const COMPONENT_NAME_LOOSE = /^_?[A-Z]/u;
|
|
122
|
+
/**
|
|
123
|
+
* Regular expression for matching a React Hook name.
|
|
124
|
+
*/
|
|
125
|
+
const HOOK_NAME = /^use/u;
|
|
126
|
+
/**
|
|
127
|
+
* Convert a string to the `RegExp`.
|
|
128
|
+
* Normal strings (e.g. `"foo"`) is converted to `/^foo$/` of `RegExp`.
|
|
129
|
+
* Strings like `"/^foo/i"` are converted to `/^foo/i` of `RegExp`.
|
|
130
|
+
* @see https://github.com/sveltejs/eslint-plugin-svelte/blob/main/packages/eslint-plugin-svelte/src/utils/regexp.ts
|
|
131
|
+
* @param string The string to convert.
|
|
132
|
+
* @returns Returns the `RegExp`.
|
|
133
|
+
*/
|
|
63
134
|
function toRegExp(string) {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
135
|
+
const [, pattern, flags = "u"] = REGEXP_STR.exec(string) ?? [];
|
|
136
|
+
if (pattern != null) return new RegExp(pattern, flags);
|
|
137
|
+
return { test: (s) => s === string };
|
|
67
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* Checks whether given string is regexp string
|
|
141
|
+
* @param string The string to check
|
|
142
|
+
* @returns boolean
|
|
143
|
+
*/
|
|
68
144
|
function isRegExp(string) {
|
|
69
|
-
|
|
145
|
+
return REGEXP_STR.test(string);
|
|
70
146
|
}
|
|
71
147
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region src/JsxConfig/JsxConfig.ts
|
|
150
|
+
const JsxEmit = {
|
|
151
|
+
None: 0,
|
|
152
|
+
Preserve: 1,
|
|
153
|
+
React: 2,
|
|
154
|
+
ReactNative: 3,
|
|
155
|
+
ReactJSX: 4,
|
|
156
|
+
ReactJSXDev: 5
|
|
80
157
|
};
|
|
81
|
-
|
|
82
|
-
|
|
158
|
+
/**
|
|
159
|
+
* Create a JsxConfig object
|
|
160
|
+
* @returns JsxConfig
|
|
161
|
+
*/
|
|
162
|
+
function make$2() {
|
|
163
|
+
return {};
|
|
83
164
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
165
|
+
/**
|
|
166
|
+
* Get JsxConfig from RuleContext
|
|
167
|
+
* @param context The RuleContext
|
|
168
|
+
* @returns JsxConfig
|
|
169
|
+
*/
|
|
170
|
+
function getFromContext$1(context) {
|
|
171
|
+
const options = context.sourceCode.parserServices?.program?.getCompilerOptions() ?? {};
|
|
172
|
+
return {
|
|
173
|
+
jsx: options.jsx ?? JsxEmit.ReactJSX,
|
|
174
|
+
jsxFactory: options.jsxFactory ?? "React.createElement",
|
|
175
|
+
jsxFragmentFactory: options.jsxFragmentFactory ?? "React.Fragment",
|
|
176
|
+
jsxImportSource: options.jsxImportSource ?? "react",
|
|
177
|
+
reactNamespace: options.reactNamespace ?? "React"
|
|
178
|
+
};
|
|
93
179
|
}
|
|
94
|
-
|
|
180
|
+
const cache = /* @__PURE__ */ new WeakMap();
|
|
181
|
+
/**
|
|
182
|
+
* Get JsxConfig from annotation
|
|
183
|
+
* @param context The RuleContext
|
|
184
|
+
* @returns JsxConfig
|
|
185
|
+
*/
|
|
95
186
|
function getFromAnnotation(context) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
if (jsxImportSource != null) options.jsxImportSource = jsxImportSource;
|
|
114
|
-
return options;
|
|
115
|
-
}
|
|
116
|
-
);
|
|
187
|
+
return (0, __eslint_react_eff.getOrElseUpdate)(cache, context.sourceCode, () => {
|
|
188
|
+
const options = make$2();
|
|
189
|
+
if (!context.sourceCode.text.includes("@jsx")) return options;
|
|
190
|
+
let jsx, jsxFrag, jsxRuntime, jsxImportSource;
|
|
191
|
+
for (const comment of context.sourceCode.getAllComments().reverse()) {
|
|
192
|
+
const value = comment.value;
|
|
193
|
+
jsx ??= value.match(ANNOTATION_JSX)?.[1];
|
|
194
|
+
jsxFrag ??= value.match(ANNOTATION_JSX_FRAG)?.[1];
|
|
195
|
+
jsxRuntime ??= value.match(ANNOTATION_JSX_RUNTIME)?.[1];
|
|
196
|
+
jsxImportSource ??= value.match(ANNOTATION_JSX_IMPORT_SOURCE)?.[1];
|
|
197
|
+
}
|
|
198
|
+
if (jsx != null) options.jsxFactory = jsx;
|
|
199
|
+
if (jsxFrag != null) options.jsxFragmentFactory = jsxFrag;
|
|
200
|
+
if (jsxRuntime != null) options.jsx = jsxRuntime === "classic" ? JsxEmit.React : JsxEmit.ReactJSX;
|
|
201
|
+
if (jsxImportSource != null) options.jsxImportSource = jsxImportSource;
|
|
202
|
+
return options;
|
|
203
|
+
});
|
|
117
204
|
}
|
|
118
205
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region src/JsxConfig/index.ts
|
|
208
|
+
var JsxConfig_exports = {};
|
|
209
|
+
__export(JsxConfig_exports, {
|
|
210
|
+
JsxEmit: () => JsxEmit,
|
|
211
|
+
getFromAnnotation: () => getFromAnnotation,
|
|
212
|
+
getFromContext: () => getFromContext$1,
|
|
213
|
+
make: () => make$2
|
|
126
214
|
});
|
|
127
215
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
216
|
+
//#endregion
|
|
217
|
+
//#region src/LanguagePreference/LanguagePreference.ts
|
|
218
|
+
/**
|
|
219
|
+
* Get a copy of the default LanguagePreference.
|
|
220
|
+
*/
|
|
221
|
+
function make$1() {
|
|
222
|
+
return {
|
|
223
|
+
indentStyle: "space",
|
|
224
|
+
indentWidth: 2,
|
|
225
|
+
jsxQuoteStyle: "double",
|
|
226
|
+
quoteStyle: "single",
|
|
227
|
+
semicolons: "always",
|
|
228
|
+
trailingCommas: "all"
|
|
229
|
+
};
|
|
138
230
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
231
|
+
/**
|
|
232
|
+
* A default LanguagePreference object.
|
|
233
|
+
*/
|
|
234
|
+
const defaultLanguagePreference = make$1();
|
|
235
|
+
function getFromContext() {
|
|
236
|
+
throw new Error("getFromContext is not implemented");
|
|
142
237
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
v4.z.literal("asNeeded")
|
|
161
|
-
])
|
|
162
|
-
),
|
|
163
|
-
trailingCommas: v4.z.optional(
|
|
164
|
-
v4.z.union([
|
|
165
|
-
v4.z.literal("all"),
|
|
166
|
-
v4.z.literal("es5"),
|
|
167
|
-
v4.z.literal("none")
|
|
168
|
-
])
|
|
169
|
-
),
|
|
170
|
-
// JSX specific options
|
|
171
|
-
jsxQuoteStyle: v4.z.optional(
|
|
172
|
-
v4.z.union([
|
|
173
|
-
v4.z.literal("single"),
|
|
174
|
-
v4.z.literal("double")
|
|
175
|
-
])
|
|
176
|
-
)
|
|
238
|
+
|
|
239
|
+
//#endregion
|
|
240
|
+
//#region src/LanguagePreference/LanguagePreferenceSchema.ts
|
|
241
|
+
/**
|
|
242
|
+
* @internal
|
|
243
|
+
*/
|
|
244
|
+
const LanguagePreferenceSchema = zod_v4.z.object({
|
|
245
|
+
indentStyle: zod_v4.z.optional(zod_v4.z.union([zod_v4.z.literal("tab"), zod_v4.z.literal("space")])),
|
|
246
|
+
indentWidth: zod_v4.z.optional(zod_v4.z.number()),
|
|
247
|
+
quoteStyle: zod_v4.z.optional(zod_v4.z.union([zod_v4.z.literal("single"), zod_v4.z.literal("double")])),
|
|
248
|
+
semicolons: zod_v4.z.optional(zod_v4.z.union([zod_v4.z.literal("always"), zod_v4.z.literal("asNeeded")])),
|
|
249
|
+
trailingCommas: zod_v4.z.optional(zod_v4.z.union([
|
|
250
|
+
zod_v4.z.literal("all"),
|
|
251
|
+
zod_v4.z.literal("es5"),
|
|
252
|
+
zod_v4.z.literal("none")
|
|
253
|
+
])),
|
|
254
|
+
jsxQuoteStyle: zod_v4.z.optional(zod_v4.z.union([zod_v4.z.literal("single"), zod_v4.z.literal("double")]))
|
|
177
255
|
}, {});
|
|
178
256
|
|
|
179
|
-
|
|
257
|
+
//#endregion
|
|
258
|
+
//#region src/LanguagePreference/index.ts
|
|
259
|
+
var LanguagePreference_exports = {};
|
|
260
|
+
__export(LanguagePreference_exports, {
|
|
261
|
+
LanguagePreferenceSchema: () => LanguagePreferenceSchema,
|
|
262
|
+
defaultLanguagePreference: () => defaultLanguagePreference,
|
|
263
|
+
getFromContext: () => getFromContext,
|
|
264
|
+
make: () => make$1
|
|
265
|
+
});
|
|
266
|
+
|
|
267
|
+
//#endregion
|
|
268
|
+
//#region src/Reporter.ts
|
|
180
269
|
var Reporter_exports = {};
|
|
181
270
|
__export(Reporter_exports, {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
271
|
+
make: () => make,
|
|
272
|
+
send: () => send,
|
|
273
|
+
sendOrElse: () => sendOrElse
|
|
185
274
|
});
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
275
|
+
const send = (0, __eslint_react_eff.dual)(2, (context, descriptor) => {
|
|
276
|
+
if (descriptor == null) return;
|
|
277
|
+
return context.report(descriptor);
|
|
189
278
|
});
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
279
|
+
const sendOrElse = (0, __eslint_react_eff.dual)(3, (context, descriptor, cb) => {
|
|
280
|
+
if (descriptor == null) return cb();
|
|
281
|
+
return context.report(descriptor);
|
|
193
282
|
});
|
|
194
|
-
function
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
283
|
+
function make(context) {
|
|
284
|
+
return {
|
|
285
|
+
send: (...args) => send(context, ...args),
|
|
286
|
+
sendOrElse: (...args) => sendOrElse(context, ...args)
|
|
287
|
+
};
|
|
199
288
|
}
|
|
200
289
|
|
|
201
|
-
|
|
290
|
+
//#endregion
|
|
291
|
+
//#region src/Selector.ts
|
|
202
292
|
var Selector_exports = {};
|
|
203
293
|
__export(Selector_exports, {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
294
|
+
DISPLAY_NAME_ASSIGNMENT_EXPRESSION: () => DISPLAY_NAME_ASSIGNMENT_EXPRESSION,
|
|
295
|
+
IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION: () => IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION,
|
|
296
|
+
OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR: () => OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR
|
|
207
297
|
});
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
298
|
+
const IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION = "ArrowFunctionExpression[body.type!='BlockStatement']";
|
|
299
|
+
const OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR = [
|
|
300
|
+
"VariableDeclarator",
|
|
301
|
+
"[id.type='ObjectPattern']",
|
|
302
|
+
"[init.type='Identifier']"
|
|
213
303
|
].join("");
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
304
|
+
const DISPLAY_NAME_ASSIGNMENT_EXPRESSION = [
|
|
305
|
+
"AssignmentExpression",
|
|
306
|
+
"[operator='=']",
|
|
307
|
+
"[left.type='MemberExpression']",
|
|
308
|
+
"[left.property.name='displayName']"
|
|
219
309
|
].join("");
|
|
220
310
|
|
|
221
|
-
|
|
222
|
-
exports
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
311
|
+
//#endregion
|
|
312
|
+
Object.defineProperty(exports, 'JsxConfig', {
|
|
313
|
+
enumerable: true,
|
|
314
|
+
get: function () {
|
|
315
|
+
return JsxConfig_exports;
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
Object.defineProperty(exports, 'LanguagePreference', {
|
|
319
|
+
enumerable: true,
|
|
320
|
+
get: function () {
|
|
321
|
+
return LanguagePreference_exports;
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
Object.defineProperty(exports, 'RegExp', {
|
|
325
|
+
enumerable: true,
|
|
326
|
+
get: function () {
|
|
327
|
+
return RegExp_exports;
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
Object.defineProperty(exports, 'Reporter', {
|
|
331
|
+
enumerable: true,
|
|
332
|
+
get: function () {
|
|
333
|
+
return Reporter_exports;
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
Object.defineProperty(exports, 'Selector', {
|
|
337
|
+
enumerable: true,
|
|
338
|
+
get: function () {
|
|
339
|
+
return Selector_exports;
|
|
340
|
+
}
|
|
341
|
+
});
|