@eslint-react/kit 1.47.4-beta.0 → 1.47.4-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/index.d.mts CHANGED
@@ -207,6 +207,10 @@ declare namespace RegExp$1 {
207
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
+ interface Reporter<TMessageID extends string> {
211
+ send: (descriptor: _ | null | ReportDescriptor<TMessageID>) => void;
212
+ sendOrElse: <TElse>(descriptor: _ | null | ReportDescriptor<TMessageID>, cb: () => TElse) => _ | TElse;
213
+ }
210
214
  declare const send: {
211
215
  <TMessageID extends string>(context: RuleContext, descriptor: _ | null | ReportDescriptor<TMessageID>): void;
212
216
  <TMessageID extends string>(context: RuleContext): (descriptor: _ | null | ReportDescriptor<TMessageID>) => void;
@@ -215,16 +219,14 @@ declare const sendOrElse: {
215
219
  <TMessageID extends string, TElse>(context: RuleContext, descriptor: _ | null | ReportDescriptor<TMessageID>, cb: () => TElse): _ | TElse;
216
220
  <TMessageID extends string, TElse>(context: RuleContext): (descriptor: _ | null | ReportDescriptor<TMessageID>) => (cb: () => TElse) => _ | TElse;
217
221
  };
218
- declare const make: (context: RuleContext) => {
219
- readonly send: (descriptor: _ | null | ReportDescriptor<string>) => void;
220
- readonly sendOrElse: (descriptor: _ | null | ReportDescriptor<string>, cb: () => unknown) => unknown;
221
- };
222
+ declare function make<TMessageID extends string>(context: RuleContext): Reporter<TMessageID>;
222
223
 
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 };
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 };
228
230
  }
229
231
 
230
232
  type ImplicitReturnArrowFunctionExpression = TSESTree.ArrowFunctionExpression & {
@@ -258,4 +260,4 @@ declare namespace Selector {
258
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 };
259
261
  }
260
262
 
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 };
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
@@ -207,6 +207,10 @@ declare namespace RegExp$1 {
207
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
+ interface Reporter<TMessageID extends string> {
211
+ send: (descriptor: _ | null | ReportDescriptor<TMessageID>) => void;
212
+ sendOrElse: <TElse>(descriptor: _ | null | ReportDescriptor<TMessageID>, cb: () => TElse) => _ | TElse;
213
+ }
210
214
  declare const send: {
211
215
  <TMessageID extends string>(context: RuleContext, descriptor: _ | null | ReportDescriptor<TMessageID>): void;
212
216
  <TMessageID extends string>(context: RuleContext): (descriptor: _ | null | ReportDescriptor<TMessageID>) => void;
@@ -215,16 +219,14 @@ declare const sendOrElse: {
215
219
  <TMessageID extends string, TElse>(context: RuleContext, descriptor: _ | null | ReportDescriptor<TMessageID>, cb: () => TElse): _ | TElse;
216
220
  <TMessageID extends string, TElse>(context: RuleContext): (descriptor: _ | null | ReportDescriptor<TMessageID>) => (cb: () => TElse) => _ | TElse;
217
221
  };
218
- declare const make: (context: RuleContext) => {
219
- readonly send: (descriptor: _ | null | ReportDescriptor<string>) => void;
220
- readonly sendOrElse: (descriptor: _ | null | ReportDescriptor<string>, cb: () => unknown) => unknown;
221
- };
222
+ declare function make<TMessageID extends string>(context: RuleContext): Reporter<TMessageID>;
222
223
 
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 };
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 };
228
230
  }
229
231
 
230
232
  type ImplicitReturnArrowFunctionExpression = TSESTree.ArrowFunctionExpression & {
@@ -258,4 +260,4 @@ declare namespace Selector {
258
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 };
259
261
  }
260
262
 
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 };
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
@@ -201,13 +201,12 @@ var sendOrElse = eff.dual(3, (context, descriptor, cb) => {
201
201
  if (descriptor == null) return cb();
202
202
  return context.report(descriptor);
203
203
  });
204
- var make3 = (context) => {
204
+ function make3(context) {
205
205
  return {
206
- send: (descriptor) => send(context, descriptor),
207
- // dprint-ignore
208
- sendOrElse: (descriptor, cb) => sendOrElse(context, descriptor, cb)
206
+ send: (...args) => send(context, ...args),
207
+ sendOrElse: (...args) => sendOrElse(context, ...args)
209
208
  };
210
- };
209
+ }
211
210
 
212
211
  // src/Selector.ts
213
212
  var Selector_exports = {};
package/dist/index.mjs CHANGED
@@ -179,13 +179,12 @@ var sendOrElse = dual(3, (context, descriptor, cb) => {
179
179
  if (descriptor == null) return cb();
180
180
  return context.report(descriptor);
181
181
  });
182
- var make3 = (context) => {
182
+ function make3(context) {
183
183
  return {
184
- send: (descriptor) => send(context, descriptor),
185
- // dprint-ignore
186
- sendOrElse: (descriptor, cb) => sendOrElse(context, descriptor, cb)
184
+ send: (...args) => send(context, ...args),
185
+ sendOrElse: (...args) => sendOrElse(context, ...args)
187
186
  };
188
- };
187
+ }
189
188
 
190
189
  // src/Selector.ts
191
190
  var Selector_exports = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/kit",
3
- "version": "1.47.4-beta.0",
3
+ "version": "1.47.4-next.1",
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.4-beta.0"
41
+ "@eslint-react/eff": "1.47.4-next.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@tsconfig/node22": "^22.0.1",