@eslint-react/kit 1.47.3 → 1.47.4-beta.0
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 +47 -37
- package/dist/index.d.ts +47 -37
- package/dist/index.js +28 -23
- package/dist/index.mjs +27 -22
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -183,38 +183,48 @@ 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
|
-
declare
|
|
211
|
-
|
|
212
|
-
|
|
210
|
+
declare const send: {
|
|
211
|
+
<TMessageID extends string>(context: RuleContext, descriptor: _ | null | ReportDescriptor<TMessageID>): void;
|
|
212
|
+
<TMessageID extends string>(context: RuleContext): (descriptor: _ | null | ReportDescriptor<TMessageID>) => void;
|
|
213
|
+
};
|
|
214
|
+
declare const sendOrElse: {
|
|
215
|
+
<TMessageID extends string, TElse>(context: RuleContext, descriptor: _ | null | ReportDescriptor<TMessageID>, cb: () => TElse): _ | TElse;
|
|
216
|
+
<TMessageID extends string, TElse>(context: RuleContext): (descriptor: _ | null | ReportDescriptor<TMessageID>) => (cb: () => TElse) => _ | TElse;
|
|
217
|
+
};
|
|
218
|
+
declare const make: (context: RuleContext) => {
|
|
219
|
+
readonly send: (descriptor: _ | null | ReportDescriptor<string>) => void;
|
|
220
|
+
readonly sendOrElse: (descriptor: _ | null | ReportDescriptor<string>, cb: () => unknown) => unknown;
|
|
213
221
|
};
|
|
214
222
|
|
|
215
|
-
declare const
|
|
216
|
-
declare
|
|
217
|
-
|
|
223
|
+
declare const Reporter_make: typeof make;
|
|
224
|
+
declare const Reporter_send: typeof send;
|
|
225
|
+
declare const Reporter_sendOrElse: typeof sendOrElse;
|
|
226
|
+
declare namespace Reporter {
|
|
227
|
+
export { Reporter_make as make, Reporter_send as send, Reporter_sendOrElse as sendOrElse };
|
|
218
228
|
}
|
|
219
229
|
|
|
220
230
|
type ImplicitReturnArrowFunctionExpression = TSESTree.ArrowFunctionExpression & {
|
|
@@ -238,14 +248,14 @@ declare const IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION = "ArrowFunctionExpressi
|
|
|
238
248
|
declare const OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR: string;
|
|
239
249
|
declare const DISPLAY_NAME_ASSIGNMENT_EXPRESSION: string;
|
|
240
250
|
|
|
241
|
-
declare const
|
|
242
|
-
type
|
|
243
|
-
declare const
|
|
244
|
-
type
|
|
245
|
-
declare const
|
|
246
|
-
type
|
|
247
|
-
declare namespace
|
|
248
|
-
export {
|
|
251
|
+
declare const Selector_DISPLAY_NAME_ASSIGNMENT_EXPRESSION: typeof DISPLAY_NAME_ASSIGNMENT_EXPRESSION;
|
|
252
|
+
type Selector_DisplayNameAssignmentExpression = DisplayNameAssignmentExpression;
|
|
253
|
+
declare const Selector_IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION: typeof IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION;
|
|
254
|
+
type Selector_ImplicitReturnArrowFunctionExpression = ImplicitReturnArrowFunctionExpression;
|
|
255
|
+
declare const Selector_OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR: typeof OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR;
|
|
256
|
+
type Selector_ObjectDestructuringVariableDeclarator = ObjectDestructuringVariableDeclarator;
|
|
257
|
+
declare namespace Selector {
|
|
258
|
+
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
259
|
}
|
|
250
260
|
|
|
251
|
-
export { index$1 as JsxConfig, index as LanguagePreference,
|
|
261
|
+
export { index$1 as JsxConfig, index as LanguagePreference, RegExp$1 as RegExp, Reporter, type RuleContext, type RuleDeclaration, type RuleFeature, type RulePreset, type RuleSeverity, Selector };
|
package/dist/index.d.ts
CHANGED
|
@@ -183,38 +183,48 @@ 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
|
-
declare
|
|
211
|
-
|
|
212
|
-
|
|
210
|
+
declare const send: {
|
|
211
|
+
<TMessageID extends string>(context: RuleContext, descriptor: _ | null | ReportDescriptor<TMessageID>): void;
|
|
212
|
+
<TMessageID extends string>(context: RuleContext): (descriptor: _ | null | ReportDescriptor<TMessageID>) => void;
|
|
213
|
+
};
|
|
214
|
+
declare const sendOrElse: {
|
|
215
|
+
<TMessageID extends string, TElse>(context: RuleContext, descriptor: _ | null | ReportDescriptor<TMessageID>, cb: () => TElse): _ | TElse;
|
|
216
|
+
<TMessageID extends string, TElse>(context: RuleContext): (descriptor: _ | null | ReportDescriptor<TMessageID>) => (cb: () => TElse) => _ | TElse;
|
|
217
|
+
};
|
|
218
|
+
declare const make: (context: RuleContext) => {
|
|
219
|
+
readonly send: (descriptor: _ | null | ReportDescriptor<string>) => void;
|
|
220
|
+
readonly sendOrElse: (descriptor: _ | null | ReportDescriptor<string>, cb: () => unknown) => unknown;
|
|
213
221
|
};
|
|
214
222
|
|
|
215
|
-
declare const
|
|
216
|
-
declare
|
|
217
|
-
|
|
223
|
+
declare const Reporter_make: typeof make;
|
|
224
|
+
declare const Reporter_send: typeof send;
|
|
225
|
+
declare const Reporter_sendOrElse: typeof sendOrElse;
|
|
226
|
+
declare namespace Reporter {
|
|
227
|
+
export { Reporter_make as make, Reporter_send as send, Reporter_sendOrElse as sendOrElse };
|
|
218
228
|
}
|
|
219
229
|
|
|
220
230
|
type ImplicitReturnArrowFunctionExpression = TSESTree.ArrowFunctionExpression & {
|
|
@@ -238,14 +248,14 @@ declare const IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION = "ArrowFunctionExpressi
|
|
|
238
248
|
declare const OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR: string;
|
|
239
249
|
declare const DISPLAY_NAME_ASSIGNMENT_EXPRESSION: string;
|
|
240
250
|
|
|
241
|
-
declare const
|
|
242
|
-
type
|
|
243
|
-
declare const
|
|
244
|
-
type
|
|
245
|
-
declare const
|
|
246
|
-
type
|
|
247
|
-
declare namespace
|
|
248
|
-
export {
|
|
251
|
+
declare const Selector_DISPLAY_NAME_ASSIGNMENT_EXPRESSION: typeof DISPLAY_NAME_ASSIGNMENT_EXPRESSION;
|
|
252
|
+
type Selector_DisplayNameAssignmentExpression = DisplayNameAssignmentExpression;
|
|
253
|
+
declare const Selector_IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION: typeof IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION;
|
|
254
|
+
type Selector_ImplicitReturnArrowFunctionExpression = ImplicitReturnArrowFunctionExpression;
|
|
255
|
+
declare const Selector_OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR: typeof OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR;
|
|
256
|
+
type Selector_ObjectDestructuringVariableDeclarator = ObjectDestructuringVariableDeclarator;
|
|
257
|
+
declare namespace Selector {
|
|
258
|
+
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
259
|
}
|
|
250
260
|
|
|
251
|
-
export { index$1 as JsxConfig, index as LanguagePreference,
|
|
261
|
+
export { index$1 as JsxConfig, index as LanguagePreference, RegExp$1 as RegExp, 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,32 @@ 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
|
|
193
195
|
});
|
|
194
|
-
|
|
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);
|
|
203
|
+
});
|
|
204
|
+
var make3 = (context) => {
|
|
195
205
|
return {
|
|
196
|
-
send(descriptor)
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
},
|
|
200
|
-
sendOrElse(descriptor, fallback) {
|
|
201
|
-
if (descriptor == null) return fallback();
|
|
202
|
-
return context.report(descriptor);
|
|
203
|
-
}
|
|
206
|
+
send: (descriptor) => send(context, descriptor),
|
|
207
|
+
// dprint-ignore
|
|
208
|
+
sendOrElse: (descriptor, cb) => sendOrElse(context, descriptor, cb)
|
|
204
209
|
};
|
|
205
|
-
}
|
|
210
|
+
};
|
|
206
211
|
|
|
207
|
-
// src/
|
|
208
|
-
var
|
|
209
|
-
__export(
|
|
212
|
+
// src/Selector.ts
|
|
213
|
+
var Selector_exports = {};
|
|
214
|
+
__export(Selector_exports, {
|
|
210
215
|
DISPLAY_NAME_ASSIGNMENT_EXPRESSION: () => DISPLAY_NAME_ASSIGNMENT_EXPRESSION,
|
|
211
216
|
IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION: () => IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION,
|
|
212
217
|
OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR: () => OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR
|
|
@@ -226,6 +231,6 @@ var DISPLAY_NAME_ASSIGNMENT_EXPRESSION = [
|
|
|
226
231
|
|
|
227
232
|
exports.JsxConfig = JsxConfig_exports;
|
|
228
233
|
exports.LanguagePreference = LanguagePreference_exports;
|
|
229
|
-
exports.
|
|
230
|
-
exports.
|
|
231
|
-
exports.
|
|
234
|
+
exports.RegExp = RegExp_exports;
|
|
235
|
+
exports.Reporter = Reporter_exports;
|
|
236
|
+
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,32 @@ 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
|
|
171
173
|
});
|
|
172
|
-
|
|
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);
|
|
181
|
+
});
|
|
182
|
+
var make3 = (context) => {
|
|
173
183
|
return {
|
|
174
|
-
send(descriptor)
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
},
|
|
178
|
-
sendOrElse(descriptor, fallback) {
|
|
179
|
-
if (descriptor == null) return fallback();
|
|
180
|
-
return context.report(descriptor);
|
|
181
|
-
}
|
|
184
|
+
send: (descriptor) => send(context, descriptor),
|
|
185
|
+
// dprint-ignore
|
|
186
|
+
sendOrElse: (descriptor, cb) => sendOrElse(context, descriptor, cb)
|
|
182
187
|
};
|
|
183
|
-
}
|
|
188
|
+
};
|
|
184
189
|
|
|
185
|
-
// src/
|
|
186
|
-
var
|
|
187
|
-
__export(
|
|
190
|
+
// src/Selector.ts
|
|
191
|
+
var Selector_exports = {};
|
|
192
|
+
__export(Selector_exports, {
|
|
188
193
|
DISPLAY_NAME_ASSIGNMENT_EXPRESSION: () => DISPLAY_NAME_ASSIGNMENT_EXPRESSION,
|
|
189
194
|
IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION: () => IMPLICIT_RETURN_ARROW_FUNCTION_EXPRESSION,
|
|
190
195
|
OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR: () => OBJECT_DESTRUCTURING_VARIABLE_DECLARATOR
|
|
@@ -202,4 +207,4 @@ var DISPLAY_NAME_ASSIGNMENT_EXPRESSION = [
|
|
|
202
207
|
"[left.property.name='displayName']"
|
|
203
208
|
].join("");
|
|
204
209
|
|
|
205
|
-
export { JsxConfig_exports as JsxConfig, LanguagePreference_exports as LanguagePreference,
|
|
210
|
+
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.0",
|
|
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.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@tsconfig/node22": "^22.0.1",
|