@eslint-react/kit 1.47.3 → 1.47.4-beta.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 +49 -37
- package/dist/index.d.ts +49 -37
- package/dist/index.js +25 -21
- package/dist/index.mjs +24 -20
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -183,38 +183,50 @@ declare function toRegExp(string: string): {
|
|
|
183
183
|
*/
|
|
184
184
|
declare function isRegExp(string: string): boolean;
|
|
185
185
|
|
|
186
|
-
declare const
|
|
187
|
-
declare const
|
|
188
|
-
declare const
|
|
189
|
-
declare const
|
|
190
|
-
declare const
|
|
191
|
-
declare const
|
|
192
|
-
declare const
|
|
193
|
-
declare const
|
|
194
|
-
declare const
|
|
195
|
-
declare const
|
|
196
|
-
declare const
|
|
197
|
-
declare const
|
|
198
|
-
declare const
|
|
199
|
-
declare const
|
|
200
|
-
declare const
|
|
201
|
-
declare const
|
|
202
|
-
declare const
|
|
203
|
-
declare const
|
|
204
|
-
declare const
|
|
205
|
-
declare const
|
|
206
|
-
declare namespace
|
|
207
|
-
export {
|
|
186
|
+
declare const RegExp$1_ANNOTATION_JSX: typeof ANNOTATION_JSX;
|
|
187
|
+
declare const RegExp$1_ANNOTATION_JSX_FRAG: typeof ANNOTATION_JSX_FRAG;
|
|
188
|
+
declare const RegExp$1_ANNOTATION_JSX_IMPORT_SOURCE: typeof ANNOTATION_JSX_IMPORT_SOURCE;
|
|
189
|
+
declare const RegExp$1_ANNOTATION_JSX_RUNTIME: typeof ANNOTATION_JSX_RUNTIME;
|
|
190
|
+
declare const RegExp$1_CAMEL_CASE: typeof CAMEL_CASE;
|
|
191
|
+
declare const RegExp$1_COMPONENT_NAME: typeof COMPONENT_NAME;
|
|
192
|
+
declare const RegExp$1_COMPONENT_NAME_LOOSE: typeof COMPONENT_NAME_LOOSE;
|
|
193
|
+
declare const RegExp$1_CONSTANT_CASE: typeof CONSTANT_CASE;
|
|
194
|
+
declare const RegExp$1_HOOK_NAME: typeof HOOK_NAME;
|
|
195
|
+
declare const RegExp$1_HTML_TAG: typeof HTML_TAG;
|
|
196
|
+
declare const RegExp$1_JAVASCRIPT_PROTOCOL: typeof JAVASCRIPT_PROTOCOL;
|
|
197
|
+
declare const RegExp$1_JS_EXT: typeof JS_EXT;
|
|
198
|
+
declare const RegExp$1_JS_IDENTIFIER: typeof JS_IDENTIFIER;
|
|
199
|
+
declare const RegExp$1_KEBAB_CASE: typeof KEBAB_CASE;
|
|
200
|
+
declare const RegExp$1_PASCAL_CASE: typeof PASCAL_CASE;
|
|
201
|
+
declare const RegExp$1_REGEXP_STR: typeof REGEXP_STR;
|
|
202
|
+
declare const RegExp$1_SNAKE_CASE: typeof SNAKE_CASE;
|
|
203
|
+
declare const RegExp$1_TS_EXT: typeof TS_EXT;
|
|
204
|
+
declare const RegExp$1_isRegExp: typeof isRegExp;
|
|
205
|
+
declare const RegExp$1_toRegExp: typeof toRegExp;
|
|
206
|
+
declare namespace RegExp$1 {
|
|
207
|
+
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 };
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
210
|
+
interface Reporter<TMessageID extends string> {
|
|
211
|
+
send: (descriptor: _ | null | ReportDescriptor<TMessageID>) => void;
|
|
212
|
+
sendOrElse: <TElse>(descriptor: _ | null | ReportDescriptor<TMessageID>, cb: () => TElse) => _ | TElse;
|
|
213
|
+
}
|
|
214
|
+
declare const send: {
|
|
215
|
+
<TMessageID extends string>(context: RuleContext, descriptor: _ | null | ReportDescriptor<TMessageID>): void;
|
|
216
|
+
<TMessageID extends string>(context: RuleContext): (descriptor: _ | null | ReportDescriptor<TMessageID>) => void;
|
|
217
|
+
};
|
|
218
|
+
declare const sendOrElse: {
|
|
219
|
+
<TMessageID extends string, TElse>(context: RuleContext, descriptor: _ | null | ReportDescriptor<TMessageID>, cb: () => TElse): _ | TElse;
|
|
220
|
+
<TMessageID extends string, TElse>(context: RuleContext): (descriptor: _ | null | ReportDescriptor<TMessageID>) => (cb: () => TElse) => _ | TElse;
|
|
213
221
|
};
|
|
222
|
+
declare function make<TMessageID extends string>(context: RuleContext): Reporter<TMessageID>;
|
|
214
223
|
|
|
215
|
-
|
|
216
|
-
declare
|
|
217
|
-
|
|
224
|
+
type Reporter$1_Reporter<TMessageID extends string> = Reporter<TMessageID>;
|
|
225
|
+
declare const Reporter$1_make: typeof make;
|
|
226
|
+
declare const Reporter$1_send: typeof send;
|
|
227
|
+
declare const Reporter$1_sendOrElse: typeof sendOrElse;
|
|
228
|
+
declare namespace Reporter$1 {
|
|
229
|
+
export { type Reporter$1_Reporter as Reporter, Reporter$1_make as make, Reporter$1_send as send, Reporter$1_sendOrElse as sendOrElse };
|
|
218
230
|
}
|
|
219
231
|
|
|
220
232
|
type ImplicitReturnArrowFunctionExpression = TSESTree.ArrowFunctionExpression & {
|
|
@@ -238,14 +250,14 @@ declare const IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION = "ArrowFunctionExpressi
|
|
|
238
250
|
declare const OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR: string;
|
|
239
251
|
declare const DISPLAY_NAME_ASSIGNMENT_EXPRESSION: string;
|
|
240
252
|
|
|
241
|
-
declare const
|
|
242
|
-
type
|
|
243
|
-
declare const
|
|
244
|
-
type
|
|
245
|
-
declare const
|
|
246
|
-
type
|
|
247
|
-
declare namespace
|
|
248
|
-
export {
|
|
253
|
+
declare const Selector_DISPLAY_NAME_ASSIGNMENT_EXPRESSION: typeof DISPLAY_NAME_ASSIGNMENT_EXPRESSION;
|
|
254
|
+
type Selector_DisplayNameAssignmentExpression = DisplayNameAssignmentExpression;
|
|
255
|
+
declare const Selector_IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION: typeof IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION;
|
|
256
|
+
type Selector_ImplicitReturnArrowFunctionExpression = ImplicitReturnArrowFunctionExpression;
|
|
257
|
+
declare const Selector_OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR: typeof OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR;
|
|
258
|
+
type Selector_ObjectDestructuringVariableDeclarator = ObjectDestructuringVariableDeclarator;
|
|
259
|
+
declare namespace Selector {
|
|
260
|
+
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 };
|
|
249
261
|
}
|
|
250
262
|
|
|
251
|
-
export { index$1 as JsxConfig, index as LanguagePreference,
|
|
263
|
+
export { index$1 as JsxConfig, index as LanguagePreference, RegExp$1 as RegExp, Reporter$1 as Reporter, type RuleContext, type RuleDeclaration, type RuleFeature, type RulePreset, type RuleSeverity, Selector };
|
package/dist/index.d.ts
CHANGED
|
@@ -183,38 +183,50 @@ declare function toRegExp(string: string): {
|
|
|
183
183
|
*/
|
|
184
184
|
declare function isRegExp(string: string): boolean;
|
|
185
185
|
|
|
186
|
-
declare const
|
|
187
|
-
declare const
|
|
188
|
-
declare const
|
|
189
|
-
declare const
|
|
190
|
-
declare const
|
|
191
|
-
declare const
|
|
192
|
-
declare const
|
|
193
|
-
declare const
|
|
194
|
-
declare const
|
|
195
|
-
declare const
|
|
196
|
-
declare const
|
|
197
|
-
declare const
|
|
198
|
-
declare const
|
|
199
|
-
declare const
|
|
200
|
-
declare const
|
|
201
|
-
declare const
|
|
202
|
-
declare const
|
|
203
|
-
declare const
|
|
204
|
-
declare const
|
|
205
|
-
declare const
|
|
206
|
-
declare namespace
|
|
207
|
-
export {
|
|
186
|
+
declare const RegExp$1_ANNOTATION_JSX: typeof ANNOTATION_JSX;
|
|
187
|
+
declare const RegExp$1_ANNOTATION_JSX_FRAG: typeof ANNOTATION_JSX_FRAG;
|
|
188
|
+
declare const RegExp$1_ANNOTATION_JSX_IMPORT_SOURCE: typeof ANNOTATION_JSX_IMPORT_SOURCE;
|
|
189
|
+
declare const RegExp$1_ANNOTATION_JSX_RUNTIME: typeof ANNOTATION_JSX_RUNTIME;
|
|
190
|
+
declare const RegExp$1_CAMEL_CASE: typeof CAMEL_CASE;
|
|
191
|
+
declare const RegExp$1_COMPONENT_NAME: typeof COMPONENT_NAME;
|
|
192
|
+
declare const RegExp$1_COMPONENT_NAME_LOOSE: typeof COMPONENT_NAME_LOOSE;
|
|
193
|
+
declare const RegExp$1_CONSTANT_CASE: typeof CONSTANT_CASE;
|
|
194
|
+
declare const RegExp$1_HOOK_NAME: typeof HOOK_NAME;
|
|
195
|
+
declare const RegExp$1_HTML_TAG: typeof HTML_TAG;
|
|
196
|
+
declare const RegExp$1_JAVASCRIPT_PROTOCOL: typeof JAVASCRIPT_PROTOCOL;
|
|
197
|
+
declare const RegExp$1_JS_EXT: typeof JS_EXT;
|
|
198
|
+
declare const RegExp$1_JS_IDENTIFIER: typeof JS_IDENTIFIER;
|
|
199
|
+
declare const RegExp$1_KEBAB_CASE: typeof KEBAB_CASE;
|
|
200
|
+
declare const RegExp$1_PASCAL_CASE: typeof PASCAL_CASE;
|
|
201
|
+
declare const RegExp$1_REGEXP_STR: typeof REGEXP_STR;
|
|
202
|
+
declare const RegExp$1_SNAKE_CASE: typeof SNAKE_CASE;
|
|
203
|
+
declare const RegExp$1_TS_EXT: typeof TS_EXT;
|
|
204
|
+
declare const RegExp$1_isRegExp: typeof isRegExp;
|
|
205
|
+
declare const RegExp$1_toRegExp: typeof toRegExp;
|
|
206
|
+
declare namespace RegExp$1 {
|
|
207
|
+
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 };
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
210
|
+
interface Reporter<TMessageID extends string> {
|
|
211
|
+
send: (descriptor: _ | null | ReportDescriptor<TMessageID>) => void;
|
|
212
|
+
sendOrElse: <TElse>(descriptor: _ | null | ReportDescriptor<TMessageID>, cb: () => TElse) => _ | TElse;
|
|
213
|
+
}
|
|
214
|
+
declare const send: {
|
|
215
|
+
<TMessageID extends string>(context: RuleContext, descriptor: _ | null | ReportDescriptor<TMessageID>): void;
|
|
216
|
+
<TMessageID extends string>(context: RuleContext): (descriptor: _ | null | ReportDescriptor<TMessageID>) => void;
|
|
217
|
+
};
|
|
218
|
+
declare const sendOrElse: {
|
|
219
|
+
<TMessageID extends string, TElse>(context: RuleContext, descriptor: _ | null | ReportDescriptor<TMessageID>, cb: () => TElse): _ | TElse;
|
|
220
|
+
<TMessageID extends string, TElse>(context: RuleContext): (descriptor: _ | null | ReportDescriptor<TMessageID>) => (cb: () => TElse) => _ | TElse;
|
|
213
221
|
};
|
|
222
|
+
declare function make<TMessageID extends string>(context: RuleContext): Reporter<TMessageID>;
|
|
214
223
|
|
|
215
|
-
|
|
216
|
-
declare
|
|
217
|
-
|
|
224
|
+
type Reporter$1_Reporter<TMessageID extends string> = Reporter<TMessageID>;
|
|
225
|
+
declare const Reporter$1_make: typeof make;
|
|
226
|
+
declare const Reporter$1_send: typeof send;
|
|
227
|
+
declare const Reporter$1_sendOrElse: typeof sendOrElse;
|
|
228
|
+
declare namespace Reporter$1 {
|
|
229
|
+
export { type Reporter$1_Reporter as Reporter, Reporter$1_make as make, Reporter$1_send as send, Reporter$1_sendOrElse as sendOrElse };
|
|
218
230
|
}
|
|
219
231
|
|
|
220
232
|
type ImplicitReturnArrowFunctionExpression = TSESTree.ArrowFunctionExpression & {
|
|
@@ -238,14 +250,14 @@ declare const IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION = "ArrowFunctionExpressi
|
|
|
238
250
|
declare const OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR: string;
|
|
239
251
|
declare const DISPLAY_NAME_ASSIGNMENT_EXPRESSION: string;
|
|
240
252
|
|
|
241
|
-
declare const
|
|
242
|
-
type
|
|
243
|
-
declare const
|
|
244
|
-
type
|
|
245
|
-
declare const
|
|
246
|
-
type
|
|
247
|
-
declare namespace
|
|
248
|
-
export {
|
|
253
|
+
declare const Selector_DISPLAY_NAME_ASSIGNMENT_EXPRESSION: typeof DISPLAY_NAME_ASSIGNMENT_EXPRESSION;
|
|
254
|
+
type Selector_DisplayNameAssignmentExpression = DisplayNameAssignmentExpression;
|
|
255
|
+
declare const Selector_IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION: typeof IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION;
|
|
256
|
+
type Selector_ImplicitReturnArrowFunctionExpression = ImplicitReturnArrowFunctionExpression;
|
|
257
|
+
declare const Selector_OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR: typeof OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR;
|
|
258
|
+
type Selector_ObjectDestructuringVariableDeclarator = ObjectDestructuringVariableDeclarator;
|
|
259
|
+
declare namespace Selector {
|
|
260
|
+
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 };
|
|
249
261
|
}
|
|
250
262
|
|
|
251
|
-
export { index$1 as JsxConfig, index as LanguagePreference,
|
|
263
|
+
export { index$1 as JsxConfig, index as LanguagePreference, RegExp$1 as RegExp, Reporter$1 as Reporter, type RuleContext, type RuleDeclaration, type RuleFeature, type RulePreset, type RuleSeverity, Selector };
|
package/dist/index.js
CHANGED
|
@@ -38,9 +38,9 @@ __export(JsxConfig_exports, {
|
|
|
38
38
|
make: () => make
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
// src/
|
|
42
|
-
var
|
|
43
|
-
__export(
|
|
41
|
+
// src/RegExp.ts
|
|
42
|
+
var RegExp_exports = {};
|
|
43
|
+
__export(RegExp_exports, {
|
|
44
44
|
ANNOTATION_JSX: () => ANNOTATION_JSX,
|
|
45
45
|
ANNOTATION_JSX_FRAG: () => ANNOTATION_JSX_FRAG,
|
|
46
46
|
ANNOTATION_JSX_IMPORT_SOURCE: () => ANNOTATION_JSX_IMPORT_SOURCE,
|
|
@@ -186,27 +186,31 @@ var LanguagePreferenceSchema = z__namespace.object({
|
|
|
186
186
|
)
|
|
187
187
|
}, {});
|
|
188
188
|
|
|
189
|
-
// src/
|
|
190
|
-
var
|
|
191
|
-
__export(
|
|
192
|
-
make: () => make3
|
|
189
|
+
// src/Reporter.ts
|
|
190
|
+
var Reporter_exports = {};
|
|
191
|
+
__export(Reporter_exports, {
|
|
192
|
+
make: () => make3,
|
|
193
|
+
send: () => send,
|
|
194
|
+
sendOrElse: () => sendOrElse
|
|
195
|
+
});
|
|
196
|
+
var send = eff.dual(2, (context, descriptor) => {
|
|
197
|
+
if (descriptor == null) return;
|
|
198
|
+
return context.report(descriptor);
|
|
199
|
+
});
|
|
200
|
+
var sendOrElse = eff.dual(3, (context, descriptor, cb) => {
|
|
201
|
+
if (descriptor == null) return cb();
|
|
202
|
+
return context.report(descriptor);
|
|
193
203
|
});
|
|
194
204
|
function make3(context) {
|
|
195
205
|
return {
|
|
196
|
-
send(
|
|
197
|
-
|
|
198
|
-
return context.report(descriptor);
|
|
199
|
-
},
|
|
200
|
-
sendOrElse(descriptor, fallback) {
|
|
201
|
-
if (descriptor == null) return fallback();
|
|
202
|
-
return context.report(descriptor);
|
|
203
|
-
}
|
|
206
|
+
send: (...args) => send(context, ...args),
|
|
207
|
+
sendOrElse: (...args) => sendOrElse(context, ...args)
|
|
204
208
|
};
|
|
205
209
|
}
|
|
206
210
|
|
|
207
|
-
// src/
|
|
208
|
-
var
|
|
209
|
-
__export(
|
|
211
|
+
// src/Selector.ts
|
|
212
|
+
var Selector_exports = {};
|
|
213
|
+
__export(Selector_exports, {
|
|
210
214
|
DISPLAY_NAME_ASSIGNMENT_EXPRESSION: () => DISPLAY_NAME_ASSIGNMENT_EXPRESSION,
|
|
211
215
|
IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION: () => IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION,
|
|
212
216
|
OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR: () => OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR
|
|
@@ -226,6 +230,6 @@ var DISPLAY_NAME_ASSIGNMENT_EXPRESSION = [
|
|
|
226
230
|
|
|
227
231
|
exports.JsxConfig = JsxConfig_exports;
|
|
228
232
|
exports.LanguagePreference = LanguagePreference_exports;
|
|
229
|
-
exports.
|
|
230
|
-
exports.
|
|
231
|
-
exports.
|
|
233
|
+
exports.RegExp = RegExp_exports;
|
|
234
|
+
exports.Reporter = Reporter_exports;
|
|
235
|
+
exports.Selector = Selector_exports;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getOrElseUpdate } from '@eslint-react/eff';
|
|
1
|
+
import { dual, getOrElseUpdate } from '@eslint-react/eff';
|
|
2
2
|
import { JsxEmit } from 'typescript';
|
|
3
3
|
import * as z from '@zod/mini';
|
|
4
4
|
|
|
@@ -16,9 +16,9 @@ __export(JsxConfig_exports, {
|
|
|
16
16
|
make: () => make
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
// src/
|
|
20
|
-
var
|
|
21
|
-
__export(
|
|
19
|
+
// src/RegExp.ts
|
|
20
|
+
var RegExp_exports = {};
|
|
21
|
+
__export(RegExp_exports, {
|
|
22
22
|
ANNOTATION_JSX: () => ANNOTATION_JSX,
|
|
23
23
|
ANNOTATION_JSX_FRAG: () => ANNOTATION_JSX_FRAG,
|
|
24
24
|
ANNOTATION_JSX_IMPORT_SOURCE: () => ANNOTATION_JSX_IMPORT_SOURCE,
|
|
@@ -164,27 +164,31 @@ var LanguagePreferenceSchema = z.object({
|
|
|
164
164
|
)
|
|
165
165
|
}, {});
|
|
166
166
|
|
|
167
|
-
// src/
|
|
168
|
-
var
|
|
169
|
-
__export(
|
|
170
|
-
make: () => make3
|
|
167
|
+
// src/Reporter.ts
|
|
168
|
+
var Reporter_exports = {};
|
|
169
|
+
__export(Reporter_exports, {
|
|
170
|
+
make: () => make3,
|
|
171
|
+
send: () => send,
|
|
172
|
+
sendOrElse: () => sendOrElse
|
|
173
|
+
});
|
|
174
|
+
var send = dual(2, (context, descriptor) => {
|
|
175
|
+
if (descriptor == null) return;
|
|
176
|
+
return context.report(descriptor);
|
|
177
|
+
});
|
|
178
|
+
var sendOrElse = dual(3, (context, descriptor, cb) => {
|
|
179
|
+
if (descriptor == null) return cb();
|
|
180
|
+
return context.report(descriptor);
|
|
171
181
|
});
|
|
172
182
|
function make3(context) {
|
|
173
183
|
return {
|
|
174
|
-
send(
|
|
175
|
-
|
|
176
|
-
return context.report(descriptor);
|
|
177
|
-
},
|
|
178
|
-
sendOrElse(descriptor, fallback) {
|
|
179
|
-
if (descriptor == null) return fallback();
|
|
180
|
-
return context.report(descriptor);
|
|
181
|
-
}
|
|
184
|
+
send: (...args) => send(context, ...args),
|
|
185
|
+
sendOrElse: (...args) => sendOrElse(context, ...args)
|
|
182
186
|
};
|
|
183
187
|
}
|
|
184
188
|
|
|
185
|
-
// src/
|
|
186
|
-
var
|
|
187
|
-
__export(
|
|
189
|
+
// src/Selector.ts
|
|
190
|
+
var Selector_exports = {};
|
|
191
|
+
__export(Selector_exports, {
|
|
188
192
|
DISPLAY_NAME_ASSIGNMENT_EXPRESSION: () => DISPLAY_NAME_ASSIGNMENT_EXPRESSION,
|
|
189
193
|
IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION: () => IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION,
|
|
190
194
|
OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR: () => OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR
|
|
@@ -202,4 +206,4 @@ var DISPLAY_NAME_ASSIGNMENT_EXPRESSION = [
|
|
|
202
206
|
"[left.property.name='displayName']"
|
|
203
207
|
].join("");
|
|
204
208
|
|
|
205
|
-
export { JsxConfig_exports as JsxConfig, LanguagePreference_exports as LanguagePreference,
|
|
209
|
+
export { JsxConfig_exports as JsxConfig, LanguagePreference_exports as LanguagePreference, RegExp_exports as RegExp, Reporter_exports as Reporter, Selector_exports as Selector };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/kit",
|
|
3
|
-
"version": "1.47.
|
|
3
|
+
"version": "1.47.4-beta.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,7 +38,7 @@
|
|
|
38
38
|
"@typescript-eslint/utils": "^8.30.1",
|
|
39
39
|
"@zod/mini": "^4.0.0-beta.0",
|
|
40
40
|
"ts-pattern": "^5.7.0",
|
|
41
|
-
"@eslint-react/eff": "1.47.
|
|
41
|
+
"@eslint-react/eff": "1.47.4-beta.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@tsconfig/node22": "^22.0.1",
|