@eslint-react/core 1.24.0-next.8 → 1.24.0-next.9
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 +8 -5
- package/dist/index.d.ts +8 -5
- package/dist/index.js +16 -5
- package/dist/index.mjs +14 -6
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -73,7 +73,7 @@ interface ERClassComponent extends ERSemanticNode {
|
|
|
73
73
|
node: AST.TSESTreeClass;
|
|
74
74
|
flag: ERClassComponentFlag;
|
|
75
75
|
hint: ERComponentHint;
|
|
76
|
-
methods:
|
|
76
|
+
methods: AST.TSESTreeMethodOrProperty[];
|
|
77
77
|
displayName: _ | TSESTree.Expression;
|
|
78
78
|
}
|
|
79
79
|
type ERComponent = ERClassComponent | ERFunctionComponent;
|
|
@@ -129,11 +129,14 @@ declare function getFunctionComponentIdentifier(node: AST.TSESTreeFunction, cont
|
|
|
129
129
|
|
|
130
130
|
type ERComponentKind = "classComponent" | "functionComponent";
|
|
131
131
|
|
|
132
|
-
declare function isComponentDidMount(node: TSESTree.Node): node is
|
|
133
|
-
declare function isComponentWillUnmount(node: TSESTree.Node): node is
|
|
132
|
+
declare function isComponentDidMount(node: TSESTree.Node): node is AST.TSESTreeMethodOrProperty;
|
|
133
|
+
declare function isComponentWillUnmount(node: TSESTree.Node): node is AST.TSESTreeMethodOrProperty;
|
|
134
|
+
declare function isComponentDidCatch(node: TSESTree.Node): node is AST.TSESTreeMethodOrProperty;
|
|
135
|
+
declare function isGetDerivedStateFromError(node: TSESTree.Node): node is AST.TSESTreeMethodOrProperty;
|
|
136
|
+
declare function isGetDerivedStateFromProps(node: TSESTree.Node): node is AST.TSESTreeMethodOrProperty;
|
|
134
137
|
declare function isFunctionOfComponentDidMount(node: TSESTree.Node): boolean;
|
|
135
138
|
declare function isFunctionOfComponentWillUnmount(node: TSESTree.Node): boolean;
|
|
136
|
-
declare function isRenderMethodLike(node: TSESTree.Node): node is
|
|
139
|
+
declare function isRenderMethodLike(node: TSESTree.Node): node is AST.TSESTreeMethodOrProperty;
|
|
137
140
|
declare function isFunctionOfRenderMethod(node: AST.TSESTreeFunction): boolean;
|
|
138
141
|
/**
|
|
139
142
|
* Check whether given node is declared inside class component's render block
|
|
@@ -2572,4 +2575,4 @@ declare const isMemoCall: {
|
|
|
2572
2575
|
(node: Node, context: _eslint_react_shared.RuleContext): node is CallExpression;
|
|
2573
2576
|
};
|
|
2574
2577
|
|
|
2575
|
-
export { type ComponentCollectorOptions, DEFAULT_COMPONENT_HINT, type ERClassComponent, ERClassComponentFlag, type ERComponent, ERComponentHint, type ERComponentKind, type EREffectKind, type EREffectMethodKind, type EREffectPhaseKind, type ERFunctionComponent, ERFunctionComponentFlag, type ERHook, type ERHookKind, type ERLifecycleMethodKind, type ERLifecyclePhaseKind, type ERPhaseKind, ERPhaseRelevance, type ERSemanticEntry, type ERSemanticNode, type ERStateKind, RE_COMPONENT_NAME, RE_HOOK_NAME, getComponentNameFromIdentifier, getElementNameOnJsxAndHtml, getFunctionComponentIdentifier, getId, hasNoneOrValidComponentName, isCallFromReact, isCallFromReactMember, isChildrenCount, isChildrenCountCall, isChildrenForEach, isChildrenForEachCall, isChildrenMap, isChildrenMapCall, isChildrenOfCreateElement, isChildrenOnly, isChildrenOnlyCall, isChildrenToArray, isChildrenToArrayCall, isClassComponent, isCloneElement, isCloneElementCall, isComponentDidMount, isComponentName, isComponentWillUnmount, isCreateContext, isCreateContextCall, isCreateElement, isCreateElementCall, isCreateRef, isCreateRefCall, isDeclaredInRenderPropLoose, isDirectValueOfRenderPropertyLoose, isForwardRef, isForwardRefCall, isFromReact, isFromReactMember, isFunctionOfComponentDidMount, isFunctionOfComponentWillUnmount, isFunctionOfRenderMethod, isFunctionOfUseEffectCleanup, isFunctionOfUseEffectSetup, 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 };
|
|
2578
|
+
export { type ComponentCollectorOptions, DEFAULT_COMPONENT_HINT, type ERClassComponent, ERClassComponentFlag, type ERComponent, ERComponentHint, type ERComponentKind, type EREffectKind, type EREffectMethodKind, type EREffectPhaseKind, type ERFunctionComponent, ERFunctionComponentFlag, type ERHook, type ERHookKind, type ERLifecycleMethodKind, type ERLifecyclePhaseKind, type ERPhaseKind, ERPhaseRelevance, type ERSemanticEntry, type ERSemanticNode, type ERStateKind, RE_COMPONENT_NAME, RE_HOOK_NAME, getComponentNameFromIdentifier, getElementNameOnJsxAndHtml, getFunctionComponentIdentifier, getId, 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, 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
|
@@ -73,7 +73,7 @@ interface ERClassComponent extends ERSemanticNode {
|
|
|
73
73
|
node: AST.TSESTreeClass;
|
|
74
74
|
flag: ERClassComponentFlag;
|
|
75
75
|
hint: ERComponentHint;
|
|
76
|
-
methods:
|
|
76
|
+
methods: AST.TSESTreeMethodOrProperty[];
|
|
77
77
|
displayName: _ | TSESTree.Expression;
|
|
78
78
|
}
|
|
79
79
|
type ERComponent = ERClassComponent | ERFunctionComponent;
|
|
@@ -129,11 +129,14 @@ declare function getFunctionComponentIdentifier(node: AST.TSESTreeFunction, cont
|
|
|
129
129
|
|
|
130
130
|
type ERComponentKind = "classComponent" | "functionComponent";
|
|
131
131
|
|
|
132
|
-
declare function isComponentDidMount(node: TSESTree.Node): node is
|
|
133
|
-
declare function isComponentWillUnmount(node: TSESTree.Node): node is
|
|
132
|
+
declare function isComponentDidMount(node: TSESTree.Node): node is AST.TSESTreeMethodOrProperty;
|
|
133
|
+
declare function isComponentWillUnmount(node: TSESTree.Node): node is AST.TSESTreeMethodOrProperty;
|
|
134
|
+
declare function isComponentDidCatch(node: TSESTree.Node): node is AST.TSESTreeMethodOrProperty;
|
|
135
|
+
declare function isGetDerivedStateFromError(node: TSESTree.Node): node is AST.TSESTreeMethodOrProperty;
|
|
136
|
+
declare function isGetDerivedStateFromProps(node: TSESTree.Node): node is AST.TSESTreeMethodOrProperty;
|
|
134
137
|
declare function isFunctionOfComponentDidMount(node: TSESTree.Node): boolean;
|
|
135
138
|
declare function isFunctionOfComponentWillUnmount(node: TSESTree.Node): boolean;
|
|
136
|
-
declare function isRenderMethodLike(node: TSESTree.Node): node is
|
|
139
|
+
declare function isRenderMethodLike(node: TSESTree.Node): node is AST.TSESTreeMethodOrProperty;
|
|
137
140
|
declare function isFunctionOfRenderMethod(node: AST.TSESTreeFunction): boolean;
|
|
138
141
|
/**
|
|
139
142
|
* Check whether given node is declared inside class component's render block
|
|
@@ -2572,4 +2575,4 @@ declare const isMemoCall: {
|
|
|
2572
2575
|
(node: Node, context: _eslint_react_shared.RuleContext): node is CallExpression;
|
|
2573
2576
|
};
|
|
2574
2577
|
|
|
2575
|
-
export { type ComponentCollectorOptions, DEFAULT_COMPONENT_HINT, type ERClassComponent, ERClassComponentFlag, type ERComponent, ERComponentHint, type ERComponentKind, type EREffectKind, type EREffectMethodKind, type EREffectPhaseKind, type ERFunctionComponent, ERFunctionComponentFlag, type ERHook, type ERHookKind, type ERLifecycleMethodKind, type ERLifecyclePhaseKind, type ERPhaseKind, ERPhaseRelevance, type ERSemanticEntry, type ERSemanticNode, type ERStateKind, RE_COMPONENT_NAME, RE_HOOK_NAME, getComponentNameFromIdentifier, getElementNameOnJsxAndHtml, getFunctionComponentIdentifier, getId, hasNoneOrValidComponentName, isCallFromReact, isCallFromReactMember, isChildrenCount, isChildrenCountCall, isChildrenForEach, isChildrenForEachCall, isChildrenMap, isChildrenMapCall, isChildrenOfCreateElement, isChildrenOnly, isChildrenOnlyCall, isChildrenToArray, isChildrenToArrayCall, isClassComponent, isCloneElement, isCloneElementCall, isComponentDidMount, isComponentName, isComponentWillUnmount, isCreateContext, isCreateContextCall, isCreateElement, isCreateElementCall, isCreateRef, isCreateRefCall, isDeclaredInRenderPropLoose, isDirectValueOfRenderPropertyLoose, isForwardRef, isForwardRefCall, isFromReact, isFromReactMember, isFunctionOfComponentDidMount, isFunctionOfComponentWillUnmount, isFunctionOfRenderMethod, isFunctionOfUseEffectCleanup, isFunctionOfUseEffectSetup, 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 };
|
|
2578
|
+
export { type ComponentCollectorOptions, DEFAULT_COMPONENT_HINT, type ERClassComponent, ERClassComponentFlag, type ERComponent, ERComponentHint, type ERComponentKind, type EREffectKind, type EREffectMethodKind, type EREffectPhaseKind, type ERFunctionComponent, ERFunctionComponentFlag, type ERHook, type ERHookKind, type ERLifecycleMethodKind, type ERLifecyclePhaseKind, type ERPhaseKind, ERPhaseRelevance, type ERSemanticEntry, type ERSemanticNode, type ERStateKind, RE_COMPONENT_NAME, RE_HOOK_NAME, getComponentNameFromIdentifier, getElementNameOnJsxAndHtml, getFunctionComponentIdentifier, getId, 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, 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
|
@@ -6,6 +6,7 @@ var JSX4 = require('@eslint-react/jsx');
|
|
|
6
6
|
var types = require('@typescript-eslint/types');
|
|
7
7
|
var VAR = require('@eslint-react/var');
|
|
8
8
|
var shared = require('@eslint-react/shared');
|
|
9
|
+
require('ts-pattern');
|
|
9
10
|
var birecord = require('birecord');
|
|
10
11
|
|
|
11
12
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -417,13 +418,20 @@ function isPureComponent(node) {
|
|
|
417
418
|
}
|
|
418
419
|
return false;
|
|
419
420
|
}
|
|
420
|
-
|
|
421
|
-
// src/component/component-lifecycle.ts
|
|
422
421
|
function isComponentDidMount(node) {
|
|
423
|
-
return AST8__namespace.
|
|
422
|
+
return AST8__namespace.isMethodOrProperty(node) && node.key.type === types.AST_NODE_TYPES.Identifier && node.key.name === "componentDidMount";
|
|
424
423
|
}
|
|
425
424
|
function isComponentWillUnmount(node) {
|
|
426
|
-
return AST8__namespace.
|
|
425
|
+
return AST8__namespace.isMethodOrProperty(node) && node.key.type === types.AST_NODE_TYPES.Identifier && node.key.name === "componentWillUnmount";
|
|
426
|
+
}
|
|
427
|
+
function isComponentDidCatch(node) {
|
|
428
|
+
return AST8__namespace.isMethodOrProperty(node) && !node.static && node.key.type === types.AST_NODE_TYPES.Identifier && node.key.name === "componentDidCatch";
|
|
429
|
+
}
|
|
430
|
+
function isGetDerivedStateFromError(node) {
|
|
431
|
+
return AST8__namespace.isMethodOrProperty(node) && node.static && node.key.type === types.AST_NODE_TYPES.Identifier && node.key.name === "getDerivedStateFromError";
|
|
432
|
+
}
|
|
433
|
+
function isGetDerivedStateFromProps(node) {
|
|
434
|
+
return AST8__namespace.isMethodOrProperty(node) && node.static && node.key.type === types.AST_NODE_TYPES.Identifier && node.key.name === "getDerivedStateFromProps";
|
|
427
435
|
}
|
|
428
436
|
function isFunctionOfComponentDidMount(node) {
|
|
429
437
|
return AST8__namespace.isFunction(node) && isComponentDidMount(node.parent) && node.parent.value === node;
|
|
@@ -432,7 +440,7 @@ function isFunctionOfComponentWillUnmount(node) {
|
|
|
432
440
|
return AST8__namespace.isFunction(node) && isComponentWillUnmount(node.parent) && node.parent.value === node;
|
|
433
441
|
}
|
|
434
442
|
function isRenderMethodLike(node) {
|
|
435
|
-
return (node
|
|
443
|
+
return AST8__namespace.isMethodOrProperty(node) && node.key.type === types.AST_NODE_TYPES.Identifier && node.key.name === "render" && node.parent.parent.type === types.AST_NODE_TYPES.ClassDeclaration;
|
|
436
444
|
}
|
|
437
445
|
function isFunctionOfRenderMethod(node) {
|
|
438
446
|
if (!isRenderMethodLike(node.parent)) {
|
|
@@ -736,6 +744,7 @@ exports.isChildrenToArrayCall = isChildrenToArrayCall;
|
|
|
736
744
|
exports.isClassComponent = isClassComponent;
|
|
737
745
|
exports.isCloneElement = isCloneElement;
|
|
738
746
|
exports.isCloneElementCall = isCloneElementCall;
|
|
747
|
+
exports.isComponentDidCatch = isComponentDidCatch;
|
|
739
748
|
exports.isComponentDidMount = isComponentDidMount;
|
|
740
749
|
exports.isComponentName = isComponentName;
|
|
741
750
|
exports.isComponentWillUnmount = isComponentWillUnmount;
|
|
@@ -756,6 +765,8 @@ exports.isFunctionOfComponentWillUnmount = isFunctionOfComponentWillUnmount;
|
|
|
756
765
|
exports.isFunctionOfRenderMethod = isFunctionOfRenderMethod;
|
|
757
766
|
exports.isFunctionOfUseEffectCleanup = isFunctionOfUseEffectCleanup;
|
|
758
767
|
exports.isFunctionOfUseEffectSetup = isFunctionOfUseEffectSetup;
|
|
768
|
+
exports.isGetDerivedStateFromError = isGetDerivedStateFromError;
|
|
769
|
+
exports.isGetDerivedStateFromProps = isGetDerivedStateFromProps;
|
|
759
770
|
exports.isInitializedFromReact = isInitializedFromReact;
|
|
760
771
|
exports.isInsideCreateElementProps = isInsideCreateElementProps;
|
|
761
772
|
exports.isInsideReactHook = isInsideReactHook;
|
package/dist/index.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import * as JSX4 from '@eslint-react/jsx';
|
|
|
4
4
|
import { AST_NODE_TYPES } from '@typescript-eslint/types';
|
|
5
5
|
import * as VAR from '@eslint-react/var';
|
|
6
6
|
import { unsafeDecodeSettings } from '@eslint-react/shared';
|
|
7
|
+
import 'ts-pattern';
|
|
7
8
|
import birecord from 'birecord';
|
|
8
9
|
|
|
9
10
|
// src/component/component-collector.ts
|
|
@@ -390,13 +391,20 @@ function isPureComponent(node) {
|
|
|
390
391
|
}
|
|
391
392
|
return false;
|
|
392
393
|
}
|
|
393
|
-
|
|
394
|
-
// src/component/component-lifecycle.ts
|
|
395
394
|
function isComponentDidMount(node) {
|
|
396
|
-
return AST8.
|
|
395
|
+
return AST8.isMethodOrProperty(node) && node.key.type === AST_NODE_TYPES.Identifier && node.key.name === "componentDidMount";
|
|
397
396
|
}
|
|
398
397
|
function isComponentWillUnmount(node) {
|
|
399
|
-
return AST8.
|
|
398
|
+
return AST8.isMethodOrProperty(node) && node.key.type === AST_NODE_TYPES.Identifier && node.key.name === "componentWillUnmount";
|
|
399
|
+
}
|
|
400
|
+
function isComponentDidCatch(node) {
|
|
401
|
+
return AST8.isMethodOrProperty(node) && !node.static && node.key.type === AST_NODE_TYPES.Identifier && node.key.name === "componentDidCatch";
|
|
402
|
+
}
|
|
403
|
+
function isGetDerivedStateFromError(node) {
|
|
404
|
+
return AST8.isMethodOrProperty(node) && node.static && node.key.type === AST_NODE_TYPES.Identifier && node.key.name === "getDerivedStateFromError";
|
|
405
|
+
}
|
|
406
|
+
function isGetDerivedStateFromProps(node) {
|
|
407
|
+
return AST8.isMethodOrProperty(node) && node.static && node.key.type === AST_NODE_TYPES.Identifier && node.key.name === "getDerivedStateFromProps";
|
|
400
408
|
}
|
|
401
409
|
function isFunctionOfComponentDidMount(node) {
|
|
402
410
|
return AST8.isFunction(node) && isComponentDidMount(node.parent) && node.parent.value === node;
|
|
@@ -405,7 +413,7 @@ function isFunctionOfComponentWillUnmount(node) {
|
|
|
405
413
|
return AST8.isFunction(node) && isComponentWillUnmount(node.parent) && node.parent.value === node;
|
|
406
414
|
}
|
|
407
415
|
function isRenderMethodLike(node) {
|
|
408
|
-
return (node
|
|
416
|
+
return AST8.isMethodOrProperty(node) && node.key.type === AST_NODE_TYPES.Identifier && node.key.name === "render" && node.parent.parent.type === AST_NODE_TYPES.ClassDeclaration;
|
|
409
417
|
}
|
|
410
418
|
function isFunctionOfRenderMethod(node) {
|
|
411
419
|
if (!isRenderMethodLike(node.parent)) {
|
|
@@ -681,4 +689,4 @@ function isFunctionOfUseEffectCleanup(node) {
|
|
|
681
689
|
return nearFunction === nearFunctionOfReturn && isFunctionOfUseEffectSetup(nearFunction);
|
|
682
690
|
}
|
|
683
691
|
|
|
684
|
-
export { DEFAULT_COMPONENT_HINT, ERClassComponentFlag, ERComponentHint, ERFunctionComponentFlag, ERPhaseRelevance, RE_COMPONENT_NAME, RE_HOOK_NAME, getComponentNameFromIdentifier, getElementNameOnJsxAndHtml, getFunctionComponentIdentifier, getId, hasNoneOrValidComponentName, isCallFromReact, isCallFromReactMember, isChildrenCount, isChildrenCountCall, isChildrenForEach, isChildrenForEachCall, isChildrenMap, isChildrenMapCall, isChildrenOfCreateElement, isChildrenOnly, isChildrenOnlyCall, isChildrenToArray, isChildrenToArrayCall, isClassComponent, isCloneElement, isCloneElementCall, isComponentDidMount, isComponentName, isComponentWillUnmount, isCreateContext, isCreateContextCall, isCreateElement, isCreateElementCall, isCreateRef, isCreateRefCall, isDeclaredInRenderPropLoose, isDirectValueOfRenderPropertyLoose, isForwardRef, isForwardRefCall, isFromReact, isFromReactMember, isFunctionOfComponentDidMount, isFunctionOfComponentWillUnmount, isFunctionOfRenderMethod, isFunctionOfUseEffectCleanup, isFunctionOfUseEffectSetup, 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 };
|
|
692
|
+
export { DEFAULT_COMPONENT_HINT, ERClassComponentFlag, ERComponentHint, ERFunctionComponentFlag, ERPhaseRelevance, RE_COMPONENT_NAME, RE_HOOK_NAME, getComponentNameFromIdentifier, getElementNameOnJsxAndHtml, getFunctionComponentIdentifier, getId, 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, 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.24.0-next.
|
|
3
|
+
"version": "1.24.0-next.9",
|
|
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": {
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"@typescript-eslint/utils": "^8.20.0",
|
|
40
40
|
"birecord": "^0.1.1",
|
|
41
41
|
"ts-pattern": "^5.6.0",
|
|
42
|
-
"@eslint-react/
|
|
43
|
-
"@eslint-react/
|
|
44
|
-
"@eslint-react/jsx": "1.24.0-next.
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
42
|
+
"@eslint-react/ast": "1.24.0-next.9",
|
|
43
|
+
"@eslint-react/eff": "1.24.0-next.9",
|
|
44
|
+
"@eslint-react/jsx": "1.24.0-next.9",
|
|
45
|
+
"@eslint-react/var": "1.24.0-next.9",
|
|
46
|
+
"@eslint-react/shared": "1.24.0-next.9"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"tsup": "^8.3.5",
|