@eslint-react/core 1.26.3-next.9 → 1.27.0-beta.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
@@ -137,17 +137,6 @@ declare namespace useComponentCollectorLegacy {
137
137
  };
138
138
  }
139
139
 
140
- /**
141
- * The ESQuery selector for a component display name assignment expression
142
- */
143
- declare const COMPONENT_DISPLAY_NAME_ASSIGNMENT_SELECTOR: string;
144
- /**
145
- * Check if the node is a component display name assignment expression
146
- * @param node The AST node
147
- * @returns `true` if the node is a component display name assignment
148
- */
149
- declare function isComponentDisplayNameAssignment(node: TSESTree.Node | _): node is TSESTree.AssignmentExpression;
150
-
151
140
  declare function getFunctionComponentIdentifier(node: AST.TSESTreeFunction, context: RuleContext): TSESTree.Identifier | TSESTree.Identifier[] | _;
152
141
 
153
142
  type ERComponentKind = "classComponent" | "functionComponent";
@@ -337,6 +326,17 @@ interface ERSemanticEntry {
337
326
  phase: ERPhaseKind;
338
327
  }
339
328
 
329
+ /**
330
+ * The ESQuery selector for a component display name assignment expression
331
+ */
332
+ declare const DISPLAY_NAME_ASSIGNMENT_SELECTOR: string;
333
+ /**
334
+ * Check if the node is a component display name assignment expression
335
+ * @param node The AST node
336
+ * @returns `true` if the node is a component display name assignment
337
+ */
338
+ declare function isDisplayNameAssignment(node: TSESTree.Node | _): node is TSESTree.AssignmentExpression;
339
+
340
340
  /**
341
341
  * Checks if the given node is a call expression to the given function or method of the pragma
342
342
  * @param name The name of the function or method to check
@@ -2386,7 +2386,7 @@ declare interface WithStatement extends BaseNode {
2386
2386
  }
2387
2387
  declare interface YieldExpression extends BaseNode {
2388
2388
  type: AST_NODE_TYPES.YieldExpression;
2389
- argument: Expression | undefined;
2389
+ argument: Expression | null;
2390
2390
  delegate: boolean;
2391
2391
  }
2392
2392
 
@@ -2417,4 +2417,4 @@ declare const isCreateRefCall: isCallFromReact.ReturnType;
2417
2417
  declare const isForwardRefCall: isCallFromReact.ReturnType;
2418
2418
  declare const isMemoCall: isCallFromReact.ReturnType;
2419
2419
 
2420
- export { COMPONENT_DISPLAY_NAME_ASSIGNMENT_SELECTOR, DEFAULT_COMPONENT_HINT, type ERClassComponent, type ERComponent, ERComponentFlag, ERComponentHint, type ERComponentKind, type EREffectKind, type EREffectPhaseKind, type ERFunctionComponent, type ERHook, type ERHookKind, type ERLifecyclePhaseKind, type ERPhaseKind, ERPhaseRelevance, type ERSemanticEntry, type ERSemanticNode, type ERStateKind, RE_COMPONENT_NAME, RE_HOOK_NAME, getComponentNameFromIdentifier, getFunctionComponentIdentifier, hasNoneOrValidComponentName, isCallFromReact, isCallFromReactMember, isChildrenCount, isChildrenCountCall, isChildrenForEach, isChildrenForEachCall, isChildrenMap, isChildrenMapCall, isChildrenOfCreateElement, isChildrenOnly, isChildrenOnlyCall, isChildrenToArray, isChildrenToArrayCall, isClassComponent, isCloneElement, isCloneElementCall, isComponentDidCatch, isComponentDidMount, isComponentDisplayNameAssignment, isComponentName, isComponentWillUnmount, isCreateContext, isCreateContextCall, isCreateElement, isCreateElementCall, isCreateRef, isCreateRefCall, isDeclaredInRenderPropLoose, isDirectValueOfRenderPropertyLoose, isForwardRef, isForwardRefCall, isFromReact, isFromReactMember, isFunctionOfComponentDidMount, isFunctionOfComponentWillUnmount, isFunctionOfRenderMethod, isFunctionOfUseEffectCleanup, isFunctionOfUseEffectSetup, isGetDerivedStateFromError, isGetDerivedStateFromProps, isInitializedFromReact, isInsideCreateElementProps, isInsideReactHook, isInsideRenderMethod, isInversePhase, isMemo, isMemoCall, isPureComponent, isReactAPICallWithName, isReactAPIWithName, isReactHook, isReactHookCall, isReactHookCallWithName, isReactHookCallWithNameAlias, isReactHookCallWithNameLoose, isReactHookName, isRenderFunctionLoose, isRenderMethodLike, isRenderPropLoose, isThisSetState, isUseCallbackCall, isUseContextCall, isUseDebugValueCall, isUseDeferredValueCall, isUseEffectCall, isUseEffectCallLoose, isUseIdCall, isUseImperativeHandleCall, isUseInsertionEffectCall, isUseLayoutEffectCall, isUseMemoCall, isUseReducerCall, isUseRefCall, isUseStateCall, isUseSyncExternalStoreCall, isUseTransitionCall, useComponentCollector, useComponentCollectorLegacy, useHookCollector };
2420
+ export { DEFAULT_COMPONENT_HINT, DISPLAY_NAME_ASSIGNMENT_SELECTOR, type ERClassComponent, type ERComponent, ERComponentFlag, ERComponentHint, type ERComponentKind, type EREffectKind, type EREffectPhaseKind, type ERFunctionComponent, type ERHook, type ERHookKind, type ERLifecyclePhaseKind, type ERPhaseKind, ERPhaseRelevance, type ERSemanticEntry, type ERSemanticNode, type ERStateKind, RE_COMPONENT_NAME, RE_HOOK_NAME, getComponentNameFromIdentifier, getFunctionComponentIdentifier, hasNoneOrValidComponentName, isCallFromReact, isCallFromReactMember, isChildrenCount, isChildrenCountCall, isChildrenForEach, isChildrenForEachCall, isChildrenMap, isChildrenMapCall, isChildrenOfCreateElement, isChildrenOnly, isChildrenOnlyCall, isChildrenToArray, isChildrenToArrayCall, isClassComponent, isCloneElement, isCloneElementCall, isComponentDidCatch, isComponentDidMount, isComponentName, isComponentWillUnmount, isCreateContext, isCreateContextCall, isCreateElement, isCreateElementCall, isCreateRef, isCreateRefCall, isDeclaredInRenderPropLoose, isDirectValueOfRenderPropertyLoose, isDisplayNameAssignment, isForwardRef, isForwardRefCall, isFromReact, isFromReactMember, isFunctionOfComponentDidMount, isFunctionOfComponentWillUnmount, isFunctionOfRenderMethod, isFunctionOfUseEffectCleanup, isFunctionOfUseEffectSetup, isGetDerivedStateFromError, isGetDerivedStateFromProps, isInitializedFromReact, isInsideCreateElementProps, isInsideReactHook, isInsideRenderMethod, isInversePhase, isMemo, isMemoCall, isPureComponent, isReactAPICallWithName, isReactAPIWithName, isReactHook, isReactHookCall, isReactHookCallWithName, isReactHookCallWithNameAlias, isReactHookCallWithNameLoose, isReactHookName, isRenderFunctionLoose, isRenderMethodLike, isRenderPropLoose, isThisSetState, isUseCallbackCall, isUseContextCall, isUseDebugValueCall, isUseDeferredValueCall, isUseEffectCall, isUseEffectCallLoose, isUseIdCall, isUseImperativeHandleCall, isUseInsertionEffectCall, isUseLayoutEffectCall, isUseMemoCall, isUseReducerCall, isUseRefCall, isUseStateCall, isUseSyncExternalStoreCall, isUseTransitionCall, useComponentCollector, useComponentCollectorLegacy, useHookCollector };
package/dist/index.d.ts CHANGED
@@ -137,17 +137,6 @@ declare namespace useComponentCollectorLegacy {
137
137
  };
138
138
  }
139
139
 
140
- /**
141
- * The ESQuery selector for a component display name assignment expression
142
- */
143
- declare const COMPONENT_DISPLAY_NAME_ASSIGNMENT_SELECTOR: string;
144
- /**
145
- * Check if the node is a component display name assignment expression
146
- * @param node The AST node
147
- * @returns `true` if the node is a component display name assignment
148
- */
149
- declare function isComponentDisplayNameAssignment(node: TSESTree.Node | _): node is TSESTree.AssignmentExpression;
150
-
151
140
  declare function getFunctionComponentIdentifier(node: AST.TSESTreeFunction, context: RuleContext): TSESTree.Identifier | TSESTree.Identifier[] | _;
152
141
 
153
142
  type ERComponentKind = "classComponent" | "functionComponent";
@@ -337,6 +326,17 @@ interface ERSemanticEntry {
337
326
  phase: ERPhaseKind;
338
327
  }
339
328
 
329
+ /**
330
+ * The ESQuery selector for a component display name assignment expression
331
+ */
332
+ declare const DISPLAY_NAME_ASSIGNMENT_SELECTOR: string;
333
+ /**
334
+ * Check if the node is a component display name assignment expression
335
+ * @param node The AST node
336
+ * @returns `true` if the node is a component display name assignment
337
+ */
338
+ declare function isDisplayNameAssignment(node: TSESTree.Node | _): node is TSESTree.AssignmentExpression;
339
+
340
340
  /**
341
341
  * Checks if the given node is a call expression to the given function or method of the pragma
342
342
  * @param name The name of the function or method to check
@@ -2386,7 +2386,7 @@ declare interface WithStatement extends BaseNode {
2386
2386
  }
2387
2387
  declare interface YieldExpression extends BaseNode {
2388
2388
  type: AST_NODE_TYPES.YieldExpression;
2389
- argument: Expression | undefined;
2389
+ argument: Expression | null;
2390
2390
  delegate: boolean;
2391
2391
  }
2392
2392
 
@@ -2417,4 +2417,4 @@ declare const isCreateRefCall: isCallFromReact.ReturnType;
2417
2417
  declare const isForwardRefCall: isCallFromReact.ReturnType;
2418
2418
  declare const isMemoCall: isCallFromReact.ReturnType;
2419
2419
 
2420
- export { COMPONENT_DISPLAY_NAME_ASSIGNMENT_SELECTOR, DEFAULT_COMPONENT_HINT, type ERClassComponent, type ERComponent, ERComponentFlag, ERComponentHint, type ERComponentKind, type EREffectKind, type EREffectPhaseKind, type ERFunctionComponent, type ERHook, type ERHookKind, type ERLifecyclePhaseKind, type ERPhaseKind, ERPhaseRelevance, type ERSemanticEntry, type ERSemanticNode, type ERStateKind, RE_COMPONENT_NAME, RE_HOOK_NAME, getComponentNameFromIdentifier, getFunctionComponentIdentifier, hasNoneOrValidComponentName, isCallFromReact, isCallFromReactMember, isChildrenCount, isChildrenCountCall, isChildrenForEach, isChildrenForEachCall, isChildrenMap, isChildrenMapCall, isChildrenOfCreateElement, isChildrenOnly, isChildrenOnlyCall, isChildrenToArray, isChildrenToArrayCall, isClassComponent, isCloneElement, isCloneElementCall, isComponentDidCatch, isComponentDidMount, isComponentDisplayNameAssignment, isComponentName, isComponentWillUnmount, isCreateContext, isCreateContextCall, isCreateElement, isCreateElementCall, isCreateRef, isCreateRefCall, isDeclaredInRenderPropLoose, isDirectValueOfRenderPropertyLoose, isForwardRef, isForwardRefCall, isFromReact, isFromReactMember, isFunctionOfComponentDidMount, isFunctionOfComponentWillUnmount, isFunctionOfRenderMethod, isFunctionOfUseEffectCleanup, isFunctionOfUseEffectSetup, isGetDerivedStateFromError, isGetDerivedStateFromProps, isInitializedFromReact, isInsideCreateElementProps, isInsideReactHook, isInsideRenderMethod, isInversePhase, isMemo, isMemoCall, isPureComponent, isReactAPICallWithName, isReactAPIWithName, isReactHook, isReactHookCall, isReactHookCallWithName, isReactHookCallWithNameAlias, isReactHookCallWithNameLoose, isReactHookName, isRenderFunctionLoose, isRenderMethodLike, isRenderPropLoose, isThisSetState, isUseCallbackCall, isUseContextCall, isUseDebugValueCall, isUseDeferredValueCall, isUseEffectCall, isUseEffectCallLoose, isUseIdCall, isUseImperativeHandleCall, isUseInsertionEffectCall, isUseLayoutEffectCall, isUseMemoCall, isUseReducerCall, isUseRefCall, isUseStateCall, isUseSyncExternalStoreCall, isUseTransitionCall, useComponentCollector, useComponentCollectorLegacy, useHookCollector };
2420
+ export { DEFAULT_COMPONENT_HINT, DISPLAY_NAME_ASSIGNMENT_SELECTOR, type ERClassComponent, type ERComponent, ERComponentFlag, ERComponentHint, type ERComponentKind, type EREffectKind, type EREffectPhaseKind, type ERFunctionComponent, type ERHook, type ERHookKind, type ERLifecyclePhaseKind, type ERPhaseKind, ERPhaseRelevance, type ERSemanticEntry, type ERSemanticNode, type ERStateKind, RE_COMPONENT_NAME, RE_HOOK_NAME, getComponentNameFromIdentifier, getFunctionComponentIdentifier, hasNoneOrValidComponentName, isCallFromReact, isCallFromReactMember, isChildrenCount, isChildrenCountCall, isChildrenForEach, isChildrenForEachCall, isChildrenMap, isChildrenMapCall, isChildrenOfCreateElement, isChildrenOnly, isChildrenOnlyCall, isChildrenToArray, isChildrenToArrayCall, isClassComponent, isCloneElement, isCloneElementCall, isComponentDidCatch, isComponentDidMount, isComponentName, isComponentWillUnmount, isCreateContext, isCreateContextCall, isCreateElement, isCreateElementCall, isCreateRef, isCreateRefCall, isDeclaredInRenderPropLoose, isDirectValueOfRenderPropertyLoose, isDisplayNameAssignment, isForwardRef, isForwardRefCall, isFromReact, isFromReactMember, isFunctionOfComponentDidMount, isFunctionOfComponentWillUnmount, isFunctionOfRenderMethod, isFunctionOfUseEffectCleanup, isFunctionOfUseEffectSetup, isGetDerivedStateFromError, isGetDerivedStateFromProps, isInitializedFromReact, isInsideCreateElementProps, isInsideReactHook, isInsideRenderMethod, isInversePhase, isMemo, isMemoCall, isPureComponent, isReactAPICallWithName, isReactAPIWithName, isReactHook, isReactHookCall, isReactHookCallWithName, isReactHookCallWithNameAlias, isReactHookCallWithNameLoose, isReactHookName, isRenderFunctionLoose, isRenderMethodLike, isRenderPropLoose, isThisSetState, isUseCallbackCall, isUseContextCall, isUseDebugValueCall, isUseDeferredValueCall, isUseEffectCall, isUseEffectCallLoose, isUseIdCall, isUseImperativeHandleCall, isUseInsertionEffectCall, isUseLayoutEffectCall, isUseMemoCall, isUseReducerCall, isUseRefCall, isUseStateCall, isUseSyncExternalStoreCall, isUseTransitionCall, useComponentCollector, useComponentCollectorLegacy, useHookCollector };
package/dist/index.js CHANGED
@@ -34,6 +34,17 @@ var VAR__namespace = /*#__PURE__*/_interopNamespace(VAR);
34
34
  var birecord__default = /*#__PURE__*/_interopDefault(birecord);
35
35
 
36
36
  // src/component/component-collector.ts
37
+ var DISPLAY_NAME_ASSIGNMENT_SELECTOR = [
38
+ "AssignmentExpression",
39
+ "[type]",
40
+ "[operator='=']",
41
+ "[left.type='MemberExpression']",
42
+ "[left.property.name='displayName']"
43
+ ].join("");
44
+ function isDisplayNameAssignment(node) {
45
+ if (node == null) return false;
46
+ return node.type === types.AST_NODE_TYPES.AssignmentExpression && node.operator === "=" && node.left.type === types.AST_NODE_TYPES.MemberExpression && node.left.property.type === types.AST_NODE_TYPES.Identifier && node.left.property.name === "displayName";
47
+ }
37
48
  function isInitializedFromReact(name, importSource, initialScope) {
38
49
  return name.toLowerCase() === "react" || VAR__namespace.isInitializedFromSource(
39
50
  name,
@@ -346,17 +357,6 @@ var ERComponentHint = {
346
357
  SkipClassProperty: 1n << 69n
347
358
  };
348
359
  var DEFAULT_COMPONENT_HINT = 0n | ERComponentHint.SkipBooleanLiteral | ERComponentHint.SkipEmptyArray | ERComponentHint.SkipMapCallback | ERComponentHint.SkipNumberLiteral | ERComponentHint.SkipStringLiteral | ERComponentHint.SkipUndefined | ERComponentHint.StrictArray | ERComponentHint.StrictConditional | ERComponentHint.StrictLogical;
349
- var COMPONENT_DISPLAY_NAME_ASSIGNMENT_SELECTOR = [
350
- "AssignmentExpression",
351
- "[type]",
352
- "[operator='=']",
353
- "[left.type='MemberExpression']",
354
- "[left.property.name='displayName']"
355
- ].join("");
356
- function isComponentDisplayNameAssignment(node) {
357
- if (node == null) return false;
358
- return node.type === types.AST_NODE_TYPES.AssignmentExpression && node.operator === "=" && node.left.type === types.AST_NODE_TYPES.MemberExpression && node.left.property.type === types.AST_NODE_TYPES.Identifier && node.left.property.name === "displayName";
359
- }
360
360
 
361
361
  // src/component/component-flag.ts
362
362
  var ERComponentFlag = {
@@ -521,7 +521,7 @@ function useComponentCollector(context, hint = DEFAULT_COMPONENT_HINT, options =
521
521
  });
522
522
  },
523
523
  ...collectDisplayName ? {
524
- [COMPONENT_DISPLAY_NAME_ASSIGNMENT_SELECTOR](node) {
524
+ [DISPLAY_NAME_ASSIGNMENT_SELECTOR](node) {
525
525
  const { left, right } = node;
526
526
  if (left.type !== types.AST_NODE_TYPES.MemberExpression) return;
527
527
  const componentName = left.object.type === types.AST_NODE_TYPES.Identifier ? left.object.name : eff._;
@@ -694,8 +694,8 @@ function isFunctionOfUseEffectCleanup(node) {
694
694
  return nearFunction === nearFunctionOfReturn && isFunctionOfUseEffectSetup(nearFunction);
695
695
  }
696
696
 
697
- exports.COMPONENT_DISPLAY_NAME_ASSIGNMENT_SELECTOR = COMPONENT_DISPLAY_NAME_ASSIGNMENT_SELECTOR;
698
697
  exports.DEFAULT_COMPONENT_HINT = DEFAULT_COMPONENT_HINT;
698
+ exports.DISPLAY_NAME_ASSIGNMENT_SELECTOR = DISPLAY_NAME_ASSIGNMENT_SELECTOR;
699
699
  exports.ERComponentFlag = ERComponentFlag;
700
700
  exports.ERComponentHint = ERComponentHint;
701
701
  exports.ERPhaseRelevance = ERPhaseRelevance;
@@ -722,7 +722,6 @@ exports.isCloneElement = isCloneElement;
722
722
  exports.isCloneElementCall = isCloneElementCall;
723
723
  exports.isComponentDidCatch = isComponentDidCatch;
724
724
  exports.isComponentDidMount = isComponentDidMount;
725
- exports.isComponentDisplayNameAssignment = isComponentDisplayNameAssignment;
726
725
  exports.isComponentName = isComponentName;
727
726
  exports.isComponentWillUnmount = isComponentWillUnmount;
728
727
  exports.isCreateContext = isCreateContext;
@@ -733,6 +732,7 @@ exports.isCreateRef = isCreateRef;
733
732
  exports.isCreateRefCall = isCreateRefCall;
734
733
  exports.isDeclaredInRenderPropLoose = isDeclaredInRenderPropLoose;
735
734
  exports.isDirectValueOfRenderPropertyLoose = isDirectValueOfRenderPropertyLoose;
735
+ exports.isDisplayNameAssignment = isDisplayNameAssignment;
736
736
  exports.isForwardRef = isForwardRef;
737
737
  exports.isForwardRefCall = isForwardRefCall;
738
738
  exports.isFromReact = isFromReact;
package/dist/index.mjs CHANGED
@@ -7,6 +7,17 @@ import * as VAR from '@eslint-react/var';
7
7
  import birecord from 'birecord';
8
8
 
9
9
  // src/component/component-collector.ts
10
+ var DISPLAY_NAME_ASSIGNMENT_SELECTOR = [
11
+ "AssignmentExpression",
12
+ "[type]",
13
+ "[operator='=']",
14
+ "[left.type='MemberExpression']",
15
+ "[left.property.name='displayName']"
16
+ ].join("");
17
+ function isDisplayNameAssignment(node) {
18
+ if (node == null) return false;
19
+ return node.type === AST_NODE_TYPES.AssignmentExpression && node.operator === "=" && node.left.type === AST_NODE_TYPES.MemberExpression && node.left.property.type === AST_NODE_TYPES.Identifier && node.left.property.name === "displayName";
20
+ }
10
21
  function isInitializedFromReact(name, importSource, initialScope) {
11
22
  return name.toLowerCase() === "react" || VAR.isInitializedFromSource(
12
23
  name,
@@ -319,17 +330,6 @@ var ERComponentHint = {
319
330
  SkipClassProperty: 1n << 69n
320
331
  };
321
332
  var DEFAULT_COMPONENT_HINT = 0n | ERComponentHint.SkipBooleanLiteral | ERComponentHint.SkipEmptyArray | ERComponentHint.SkipMapCallback | ERComponentHint.SkipNumberLiteral | ERComponentHint.SkipStringLiteral | ERComponentHint.SkipUndefined | ERComponentHint.StrictArray | ERComponentHint.StrictConditional | ERComponentHint.StrictLogical;
322
- var COMPONENT_DISPLAY_NAME_ASSIGNMENT_SELECTOR = [
323
- "AssignmentExpression",
324
- "[type]",
325
- "[operator='=']",
326
- "[left.type='MemberExpression']",
327
- "[left.property.name='displayName']"
328
- ].join("");
329
- function isComponentDisplayNameAssignment(node) {
330
- if (node == null) return false;
331
- return node.type === AST_NODE_TYPES.AssignmentExpression && node.operator === "=" && node.left.type === AST_NODE_TYPES.MemberExpression && node.left.property.type === AST_NODE_TYPES.Identifier && node.left.property.name === "displayName";
332
- }
333
333
 
334
334
  // src/component/component-flag.ts
335
335
  var ERComponentFlag = {
@@ -494,7 +494,7 @@ function useComponentCollector(context, hint = DEFAULT_COMPONENT_HINT, options =
494
494
  });
495
495
  },
496
496
  ...collectDisplayName ? {
497
- [COMPONENT_DISPLAY_NAME_ASSIGNMENT_SELECTOR](node) {
497
+ [DISPLAY_NAME_ASSIGNMENT_SELECTOR](node) {
498
498
  const { left, right } = node;
499
499
  if (left.type !== AST_NODE_TYPES.MemberExpression) return;
500
500
  const componentName = left.object.type === AST_NODE_TYPES.Identifier ? left.object.name : _;
@@ -667,4 +667,4 @@ function isFunctionOfUseEffectCleanup(node) {
667
667
  return nearFunction === nearFunctionOfReturn && isFunctionOfUseEffectSetup(nearFunction);
668
668
  }
669
669
 
670
- export { COMPONENT_DISPLAY_NAME_ASSIGNMENT_SELECTOR, DEFAULT_COMPONENT_HINT, ERComponentFlag, ERComponentHint, ERPhaseRelevance, RE_COMPONENT_NAME, RE_HOOK_NAME, getComponentNameFromIdentifier, getFunctionComponentIdentifier, hasNoneOrValidComponentName, isCallFromReact, isCallFromReactMember, isChildrenCount, isChildrenCountCall, isChildrenForEach, isChildrenForEachCall, isChildrenMap, isChildrenMapCall, isChildrenOfCreateElement, isChildrenOnly, isChildrenOnlyCall, isChildrenToArray, isChildrenToArrayCall, isClassComponent, isCloneElement, isCloneElementCall, isComponentDidCatch, isComponentDidMount, isComponentDisplayNameAssignment, isComponentName, isComponentWillUnmount, isCreateContext, isCreateContextCall, isCreateElement, isCreateElementCall, isCreateRef, isCreateRefCall, isDeclaredInRenderPropLoose, isDirectValueOfRenderPropertyLoose, isForwardRef, isForwardRefCall, isFromReact, isFromReactMember, isFunctionOfComponentDidMount, isFunctionOfComponentWillUnmount, isFunctionOfRenderMethod, isFunctionOfUseEffectCleanup, isFunctionOfUseEffectSetup, isGetDerivedStateFromError, isGetDerivedStateFromProps, isInitializedFromReact, isInsideCreateElementProps, isInsideReactHook, isInsideRenderMethod, isInversePhase, isMemo, isMemoCall, isPureComponent, isReactAPICallWithName, isReactAPIWithName, isReactHook, isReactHookCall, isReactHookCallWithName, isReactHookCallWithNameAlias, isReactHookCallWithNameLoose, isReactHookName, isRenderFunctionLoose, isRenderMethodLike, isRenderPropLoose, isThisSetState, isUseCallbackCall, isUseContextCall, isUseDebugValueCall, isUseDeferredValueCall, isUseEffectCall, isUseEffectCallLoose, isUseIdCall, isUseImperativeHandleCall, isUseInsertionEffectCall, isUseLayoutEffectCall, isUseMemoCall, isUseReducerCall, isUseRefCall, isUseStateCall, isUseSyncExternalStoreCall, isUseTransitionCall, useComponentCollector, useComponentCollectorLegacy, useHookCollector };
670
+ export { DEFAULT_COMPONENT_HINT, DISPLAY_NAME_ASSIGNMENT_SELECTOR, ERComponentFlag, ERComponentHint, ERPhaseRelevance, RE_COMPONENT_NAME, RE_HOOK_NAME, getComponentNameFromIdentifier, getFunctionComponentIdentifier, hasNoneOrValidComponentName, isCallFromReact, isCallFromReactMember, isChildrenCount, isChildrenCountCall, isChildrenForEach, isChildrenForEachCall, isChildrenMap, isChildrenMapCall, isChildrenOfCreateElement, isChildrenOnly, isChildrenOnlyCall, isChildrenToArray, isChildrenToArrayCall, isClassComponent, isCloneElement, isCloneElementCall, isComponentDidCatch, isComponentDidMount, isComponentName, isComponentWillUnmount, isCreateContext, isCreateContextCall, isCreateElement, isCreateElementCall, isCreateRef, isCreateRefCall, isDeclaredInRenderPropLoose, isDirectValueOfRenderPropertyLoose, isDisplayNameAssignment, isForwardRef, isForwardRefCall, isFromReact, isFromReactMember, isFunctionOfComponentDidMount, isFunctionOfComponentWillUnmount, isFunctionOfRenderMethod, isFunctionOfUseEffectCleanup, isFunctionOfUseEffectSetup, isGetDerivedStateFromError, isGetDerivedStateFromProps, isInitializedFromReact, isInsideCreateElementProps, isInsideReactHook, isInsideRenderMethod, isInversePhase, isMemo, isMemoCall, isPureComponent, isReactAPICallWithName, isReactAPIWithName, isReactHook, isReactHookCall, isReactHookCallWithName, isReactHookCallWithNameAlias, isReactHookCallWithNameLoose, isReactHookName, isRenderFunctionLoose, isRenderMethodLike, isRenderPropLoose, isThisSetState, isUseCallbackCall, isUseContextCall, isUseDebugValueCall, isUseDeferredValueCall, isUseEffectCall, isUseEffectCallLoose, isUseIdCall, isUseImperativeHandleCall, isUseInsertionEffectCall, isUseLayoutEffectCall, isUseMemoCall, isUseReducerCall, isUseRefCall, isUseStateCall, isUseSyncExternalStoreCall, isUseTransitionCall, useComponentCollector, useComponentCollectorLegacy, useHookCollector };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/core",
3
- "version": "1.26.3-next.9",
3
+ "version": "1.27.0-beta.1",
4
4
  "description": "ESLint React's ESLint utility module for static analysis of React core APIs and Patterns.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -35,17 +35,17 @@
35
35
  "./package.json"
36
36
  ],
37
37
  "dependencies": {
38
- "@typescript-eslint/scope-manager": "^8.23.0",
39
- "@typescript-eslint/type-utils": "^8.23.0",
40
- "@typescript-eslint/types": "^8.23.0",
41
- "@typescript-eslint/utils": "^8.23.0",
38
+ "@typescript-eslint/scope-manager": "^8.24.1",
39
+ "@typescript-eslint/type-utils": "^8.24.1",
40
+ "@typescript-eslint/types": "^8.24.1",
41
+ "@typescript-eslint/utils": "^8.24.1",
42
42
  "birecord": "^0.1.1",
43
43
  "ts-pattern": "^5.6.2",
44
- "@eslint-react/ast": "1.26.3-next.9",
45
- "@eslint-react/jsx": "1.26.3-next.9",
46
- "@eslint-react/shared": "1.26.3-next.9",
47
- "@eslint-react/eff": "1.26.3-next.9",
48
- "@eslint-react/var": "1.26.3-next.9"
44
+ "@eslint-react/ast": "1.27.0-beta.1",
45
+ "@eslint-react/eff": "1.27.0-beta.1",
46
+ "@eslint-react/jsx": "1.27.0-beta.1",
47
+ "@eslint-react/shared": "1.27.0-beta.1",
48
+ "@eslint-react/var": "1.27.0-beta.1"
49
49
  },
50
50
  "devDependencies": {
51
51
  "tsup": "^8.3.6",
@@ -59,6 +59,6 @@
59
59
  "build": "tsup",
60
60
  "build:docs": "typedoc",
61
61
  "lint:publish": "publint",
62
- "lint:type": "tsc --noEmit"
62
+ "lint:ts": "tsc --noEmit"
63
63
  }
64
64
  }