@eslint-react/core 1.28.0-next.6 → 1.28.1-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 +3 -5
- package/dist/index.d.ts +3 -5
- package/dist/index.js +22 -35
- package/dist/index.mjs +23 -34
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -359,11 +359,9 @@ declare const DISPLAY_NAME_ASSIGNMENT_SELECTOR: string;
|
|
|
359
359
|
*/
|
|
360
360
|
declare function isDisplayNameAssignment(node: TSESTree.Node | _): node is TSESTree.AssignmentExpression;
|
|
361
361
|
|
|
362
|
-
declare function isFromReactLoose(node: TSESTree.
|
|
363
|
-
declare function isFromReactStrict(node: TSESTree.
|
|
362
|
+
declare function isFromReactLoose(node: TSESTree.Node | _, name: string): boolean;
|
|
363
|
+
declare function isFromReactStrict(node: TSESTree.Node | _, name: string, importSource: string, initialScope: Scope): boolean;
|
|
364
364
|
declare function isFromReact(name: string): (context: RuleContext, node: TSESTree.Identifier | TSESTree.MemberExpression) => boolean;
|
|
365
|
-
declare function isFromReactMemberLoose(node: TSESTree.MemberExpression, memberName: string, name: string): boolean;
|
|
366
|
-
declare function isFromReactMemberStrict(node: TSESTree.MemberExpression, memberName: string, name: string, importSource: string, initialScope: Scope): boolean;
|
|
367
365
|
declare function isFromReactMember(memberName: string, name: string): (context: RuleContext, node: TSESTree.MemberExpression) => boolean;
|
|
368
366
|
|
|
369
367
|
/**
|
|
@@ -2421,4 +2419,4 @@ declare const isCreateRefCall: isCallFromReact.ReturnType;
|
|
|
2421
2419
|
declare const isForwardRefCall: isCallFromReact.ReturnType;
|
|
2422
2420
|
declare const isMemoCall: isCallFromReact.ReturnType;
|
|
2423
2421
|
|
|
2424
|
-
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, hasValidHierarchy, 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, isFromReactLoose, isFromReactMember,
|
|
2422
|
+
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, hasValidHierarchy, 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, isFromReactLoose, isFromReactMember, isFromReactStrict, 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
|
@@ -359,11 +359,9 @@ declare const DISPLAY_NAME_ASSIGNMENT_SELECTOR: string;
|
|
|
359
359
|
*/
|
|
360
360
|
declare function isDisplayNameAssignment(node: TSESTree.Node | _): node is TSESTree.AssignmentExpression;
|
|
361
361
|
|
|
362
|
-
declare function isFromReactLoose(node: TSESTree.
|
|
363
|
-
declare function isFromReactStrict(node: TSESTree.
|
|
362
|
+
declare function isFromReactLoose(node: TSESTree.Node | _, name: string): boolean;
|
|
363
|
+
declare function isFromReactStrict(node: TSESTree.Node | _, name: string, importSource: string, initialScope: Scope): boolean;
|
|
364
364
|
declare function isFromReact(name: string): (context: RuleContext, node: TSESTree.Identifier | TSESTree.MemberExpression) => boolean;
|
|
365
|
-
declare function isFromReactMemberLoose(node: TSESTree.MemberExpression, memberName: string, name: string): boolean;
|
|
366
|
-
declare function isFromReactMemberStrict(node: TSESTree.MemberExpression, memberName: string, name: string, importSource: string, initialScope: Scope): boolean;
|
|
367
365
|
declare function isFromReactMember(memberName: string, name: string): (context: RuleContext, node: TSESTree.MemberExpression) => boolean;
|
|
368
366
|
|
|
369
367
|
/**
|
|
@@ -2421,4 +2419,4 @@ declare const isCreateRefCall: isCallFromReact.ReturnType;
|
|
|
2421
2419
|
declare const isForwardRefCall: isCallFromReact.ReturnType;
|
|
2422
2420
|
declare const isMemoCall: isCallFromReact.ReturnType;
|
|
2423
2421
|
|
|
2424
|
-
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, hasValidHierarchy, 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, isFromReactLoose, isFromReactMember,
|
|
2422
|
+
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, hasValidHierarchy, 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, isFromReactLoose, isFromReactMember, isFromReactStrict, 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
|
@@ -537,19 +537,24 @@ function isInitializedFromReact(name, importSource, initialScope) {
|
|
|
537
537
|
// src/utils/is-from-react.ts
|
|
538
538
|
var defaultImportSource = shared.DEFAULT_ESLINT_REACT_SETTINGS.importSource;
|
|
539
539
|
function isFromReactLoose(node, name) {
|
|
540
|
-
|
|
541
|
-
|
|
540
|
+
switch (node?.type) {
|
|
541
|
+
case types.AST_NODE_TYPES.Identifier:
|
|
542
|
+
return node.name === name;
|
|
543
|
+
case types.AST_NODE_TYPES.MemberExpression:
|
|
544
|
+
return node.object.type === types.AST_NODE_TYPES.Identifier && node.property.type === types.AST_NODE_TYPES.Identifier && node.property.name === name;
|
|
545
|
+
default:
|
|
546
|
+
return false;
|
|
542
547
|
}
|
|
543
|
-
return node.name === name;
|
|
544
548
|
}
|
|
545
549
|
function isFromReactStrict(node, name, importSource, initialScope) {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
550
|
+
switch (node?.type) {
|
|
551
|
+
case types.AST_NODE_TYPES.Identifier:
|
|
552
|
+
return node.name === name && isInitializedFromReact(name, importSource, initialScope);
|
|
553
|
+
case types.AST_NODE_TYPES.MemberExpression:
|
|
554
|
+
return node.object.type === types.AST_NODE_TYPES.Identifier && node.property.type === types.AST_NODE_TYPES.Identifier && node.property.name === name && isInitializedFromReact(node.object.name, importSource, initialScope);
|
|
555
|
+
default:
|
|
556
|
+
return false;
|
|
551
557
|
}
|
|
552
|
-
return false;
|
|
553
558
|
}
|
|
554
559
|
function isFromReact(name) {
|
|
555
560
|
return (context, node) => {
|
|
@@ -558,33 +563,17 @@ function isFromReact(name) {
|
|
|
558
563
|
return isFromReactStrict(node, name, importSource, context.sourceCode.getScope(node));
|
|
559
564
|
};
|
|
560
565
|
}
|
|
561
|
-
function isFromReactMemberLoose(node, memberName, name) {
|
|
562
|
-
const { object: object2, property } = node;
|
|
563
|
-
if (property.type !== types.AST_NODE_TYPES.Identifier || property.name !== name) return false;
|
|
564
|
-
if (object2.type === types.AST_NODE_TYPES.Identifier && object2.name === memberName) return true;
|
|
565
|
-
if (object2.type === types.AST_NODE_TYPES.MemberExpression && object2.object.type === types.AST_NODE_TYPES.Identifier && object2.property.type === types.AST_NODE_TYPES.Identifier) {
|
|
566
|
-
return object2.property.name === memberName;
|
|
567
|
-
}
|
|
568
|
-
return false;
|
|
569
|
-
}
|
|
570
|
-
function isFromReactMemberStrict(node, memberName, name, importSource, initialScope) {
|
|
571
|
-
const { object: object2, property } = node;
|
|
572
|
-
if (property.type !== types.AST_NODE_TYPES.Identifier || property.name !== name) {
|
|
573
|
-
return false;
|
|
574
|
-
}
|
|
575
|
-
if (object2.type === types.AST_NODE_TYPES.Identifier && object2.name === memberName) {
|
|
576
|
-
return isInitializedFromReact(object2.name, importSource, initialScope);
|
|
577
|
-
}
|
|
578
|
-
if (object2.type === types.AST_NODE_TYPES.MemberExpression && object2.object.type === types.AST_NODE_TYPES.Identifier && isInitializedFromReact(object2.object.name, importSource, initialScope) && object2.property.type === types.AST_NODE_TYPES.Identifier) {
|
|
579
|
-
return object2.property.name === memberName;
|
|
580
|
-
}
|
|
581
|
-
return false;
|
|
582
|
-
}
|
|
583
566
|
function isFromReactMember(memberName, name) {
|
|
584
567
|
return (context, node) => {
|
|
585
568
|
const { importSource = defaultImportSource, skipImportCheck = true } = shared.unsafeDecodeSettings(context.settings);
|
|
586
|
-
|
|
587
|
-
return
|
|
569
|
+
const { object: object2, property } = node;
|
|
570
|
+
if (skipImportCheck) return isFromReactLoose(object2, memberName) && isFromReactLoose(property, name);
|
|
571
|
+
return isFromReactStrict(
|
|
572
|
+
object2,
|
|
573
|
+
memberName,
|
|
574
|
+
importSource,
|
|
575
|
+
context.sourceCode.getScope(object2)
|
|
576
|
+
) && isFromReactStrict(property, name, importSource, context.sourceCode.getScope(property));
|
|
588
577
|
};
|
|
589
578
|
}
|
|
590
579
|
|
|
@@ -1241,8 +1230,6 @@ exports.isForwardRefCall = isForwardRefCall;
|
|
|
1241
1230
|
exports.isFromReact = isFromReact;
|
|
1242
1231
|
exports.isFromReactLoose = isFromReactLoose;
|
|
1243
1232
|
exports.isFromReactMember = isFromReactMember;
|
|
1244
|
-
exports.isFromReactMemberLoose = isFromReactMemberLoose;
|
|
1245
|
-
exports.isFromReactMemberStrict = isFromReactMemberStrict;
|
|
1246
1233
|
exports.isFromReactStrict = isFromReactStrict;
|
|
1247
1234
|
exports.isFunctionOfComponentDidMount = isFunctionOfComponentDidMount;
|
|
1248
1235
|
exports.isFunctionOfComponentWillUnmount = isFunctionOfComponentWillUnmount;
|
package/dist/index.mjs
CHANGED
|
@@ -510,19 +510,24 @@ function isInitializedFromReact(name, importSource, initialScope) {
|
|
|
510
510
|
// src/utils/is-from-react.ts
|
|
511
511
|
var defaultImportSource = DEFAULT_ESLINT_REACT_SETTINGS$1.importSource;
|
|
512
512
|
function isFromReactLoose(node, name) {
|
|
513
|
-
|
|
514
|
-
|
|
513
|
+
switch (node?.type) {
|
|
514
|
+
case AST_NODE_TYPES.Identifier:
|
|
515
|
+
return node.name === name;
|
|
516
|
+
case AST_NODE_TYPES.MemberExpression:
|
|
517
|
+
return node.object.type === AST_NODE_TYPES.Identifier && node.property.type === AST_NODE_TYPES.Identifier && node.property.name === name;
|
|
518
|
+
default:
|
|
519
|
+
return false;
|
|
515
520
|
}
|
|
516
|
-
return node.name === name;
|
|
517
521
|
}
|
|
518
522
|
function isFromReactStrict(node, name, importSource, initialScope) {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
523
|
+
switch (node?.type) {
|
|
524
|
+
case AST_NODE_TYPES.Identifier:
|
|
525
|
+
return node.name === name && isInitializedFromReact(name, importSource, initialScope);
|
|
526
|
+
case AST_NODE_TYPES.MemberExpression:
|
|
527
|
+
return node.object.type === AST_NODE_TYPES.Identifier && node.property.type === AST_NODE_TYPES.Identifier && node.property.name === name && isInitializedFromReact(node.object.name, importSource, initialScope);
|
|
528
|
+
default:
|
|
529
|
+
return false;
|
|
524
530
|
}
|
|
525
|
-
return false;
|
|
526
531
|
}
|
|
527
532
|
function isFromReact(name) {
|
|
528
533
|
return (context, node) => {
|
|
@@ -531,33 +536,17 @@ function isFromReact(name) {
|
|
|
531
536
|
return isFromReactStrict(node, name, importSource, context.sourceCode.getScope(node));
|
|
532
537
|
};
|
|
533
538
|
}
|
|
534
|
-
function isFromReactMemberLoose(node, memberName, name) {
|
|
535
|
-
const { object: object2, property } = node;
|
|
536
|
-
if (property.type !== AST_NODE_TYPES.Identifier || property.name !== name) return false;
|
|
537
|
-
if (object2.type === AST_NODE_TYPES.Identifier && object2.name === memberName) return true;
|
|
538
|
-
if (object2.type === AST_NODE_TYPES.MemberExpression && object2.object.type === AST_NODE_TYPES.Identifier && object2.property.type === AST_NODE_TYPES.Identifier) {
|
|
539
|
-
return object2.property.name === memberName;
|
|
540
|
-
}
|
|
541
|
-
return false;
|
|
542
|
-
}
|
|
543
|
-
function isFromReactMemberStrict(node, memberName, name, importSource, initialScope) {
|
|
544
|
-
const { object: object2, property } = node;
|
|
545
|
-
if (property.type !== AST_NODE_TYPES.Identifier || property.name !== name) {
|
|
546
|
-
return false;
|
|
547
|
-
}
|
|
548
|
-
if (object2.type === AST_NODE_TYPES.Identifier && object2.name === memberName) {
|
|
549
|
-
return isInitializedFromReact(object2.name, importSource, initialScope);
|
|
550
|
-
}
|
|
551
|
-
if (object2.type === AST_NODE_TYPES.MemberExpression && object2.object.type === AST_NODE_TYPES.Identifier && isInitializedFromReact(object2.object.name, importSource, initialScope) && object2.property.type === AST_NODE_TYPES.Identifier) {
|
|
552
|
-
return object2.property.name === memberName;
|
|
553
|
-
}
|
|
554
|
-
return false;
|
|
555
|
-
}
|
|
556
539
|
function isFromReactMember(memberName, name) {
|
|
557
540
|
return (context, node) => {
|
|
558
541
|
const { importSource = defaultImportSource, skipImportCheck = true } = unsafeDecodeSettings(context.settings);
|
|
559
|
-
|
|
560
|
-
return
|
|
542
|
+
const { object: object2, property } = node;
|
|
543
|
+
if (skipImportCheck) return isFromReactLoose(object2, memberName) && isFromReactLoose(property, name);
|
|
544
|
+
return isFromReactStrict(
|
|
545
|
+
object2,
|
|
546
|
+
memberName,
|
|
547
|
+
importSource,
|
|
548
|
+
context.sourceCode.getScope(object2)
|
|
549
|
+
) && isFromReactStrict(property, name, importSource, context.sourceCode.getScope(property));
|
|
561
550
|
};
|
|
562
551
|
}
|
|
563
552
|
|
|
@@ -1169,4 +1158,4 @@ function isFunctionOfUseEffectCleanup(node) {
|
|
|
1169
1158
|
return nearFunction === nearFunctionOfReturn && isFunctionOfUseEffectSetup(nearFunction);
|
|
1170
1159
|
}
|
|
1171
1160
|
|
|
1172
|
-
export { DEFAULT_COMPONENT_HINT, DISPLAY_NAME_ASSIGNMENT_SELECTOR, ERComponentFlag, ERComponentHint, ERPhaseRelevance, RE_COMPONENT_NAME, RE_HOOK_NAME, getComponentNameFromIdentifier, getFunctionComponentIdentifier, hasNoneOrValidComponentName, hasValidHierarchy, 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, isFromReactLoose, isFromReactMember,
|
|
1161
|
+
export { DEFAULT_COMPONENT_HINT, DISPLAY_NAME_ASSIGNMENT_SELECTOR, ERComponentFlag, ERComponentHint, ERPhaseRelevance, RE_COMPONENT_NAME, RE_HOOK_NAME, getComponentNameFromIdentifier, getFunctionComponentIdentifier, hasNoneOrValidComponentName, hasValidHierarchy, 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, isFromReactLoose, isFromReactMember, isFromReactStrict, 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.28.
|
|
3
|
+
"version": "1.28.1-beta.0",
|
|
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": {
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"@typescript-eslint/utils": "^8.25.0",
|
|
42
42
|
"birecord": "^0.1.1",
|
|
43
43
|
"ts-pattern": "^5.6.2",
|
|
44
|
-
"@eslint-react/ast": "1.28.
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/var": "1.28.
|
|
44
|
+
"@eslint-react/ast": "1.28.1-beta.0",
|
|
45
|
+
"@eslint-react/jsx": "1.28.1-beta.0",
|
|
46
|
+
"@eslint-react/shared": "1.28.1-beta.0",
|
|
47
|
+
"@eslint-react/eff": "1.28.1-beta.0",
|
|
48
|
+
"@eslint-react/var": "1.28.1-beta.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"tsup": "^8.4.0",
|