@eslint-react/core
Advanced tools
Comparing version 0.9.0-beta.2 to 0.9.0-beta.3
@@ -213,3 +213,3 @@ import { RuleContext } from '@eslint-react/shared'; | ||
declare function getComponentIdentifier(node: TSESTreeFunction, context: RuleContext): O.Option<TSESTree.Identifier | TSESTree.Identifier[]>; | ||
declare function getFunctionComponentIdentifier(node: TSESTreeFunction, context: RuleContext): O.Option<TSESTree.Identifier | TSESTree.Identifier[]>; | ||
@@ -342,2 +342,2 @@ declare const RE_COMPONENT_NAME: RegExp; | ||
export { DEFAULT_COMPONENT_COLLECTOR_HINT, type ExRClassComponent, ExRClassComponentFlag, type ExRComponent, ExRComponentCollectorHint, type ExRComponentInitPath, type ExRComponentKind, type ExRFunctionComponent, ExRFunctionComponentFlag, type ExRHook, RE_COMPONENT_NAME, RE_HOOK_NAME, componentCollector, componentCollectorLegacy, getComponentIdentifier, getComponentInitPath, getComponentNameFromIdentifier, getParentClassComponent, hasCallInInitPath, hasNoneOrValidComponentName, hookCollector, isChildrenCount, isChildrenForEach, isChildrenMap, isChildrenOnly, isChildrenToArray, isClassComponent, isCreateContext, isFunctionOfRenderMethod, isInsideRenderMethod, isMemberExpressionOfReactMember, isMemoOrForwardRefCall, isPureComponent, isReactHookCallWithName, isUseCallbackCall, isUseContextCall, isUseDebugValueCall, isUseEffectCall, isUseImperativeHandleCall, isUseLayoutEffectCall, isUseMemoCall, isUseReducerCall, isUseRefCall, isUseStateCall, isValidComponentName, isValidReactHookName, unsafeIsDeclaredInRenderProp, unsafeIsDirectValueOfRenderProperty, unsafeIsInsideReactHookCall, unsafeIsReactHookCall, unsafeIsRenderFunction, unsafeIsRenderProp }; | ||
export { DEFAULT_COMPONENT_COLLECTOR_HINT, type ExRClassComponent, ExRClassComponentFlag, type ExRComponent, ExRComponentCollectorHint, type ExRComponentInitPath, type ExRComponentKind, type ExRFunctionComponent, ExRFunctionComponentFlag, type ExRHook, RE_COMPONENT_NAME, RE_HOOK_NAME, componentCollector, componentCollectorLegacy, getComponentInitPath, getComponentNameFromIdentifier, getFunctionComponentIdentifier, getParentClassComponent, hasCallInInitPath, hasNoneOrValidComponentName, hookCollector, isChildrenCount, isChildrenForEach, isChildrenMap, isChildrenOnly, isChildrenToArray, isClassComponent, isCreateContext, isFunctionOfRenderMethod, isInsideRenderMethod, isMemberExpressionOfReactMember, isMemoOrForwardRefCall, isPureComponent, isReactHookCallWithName, isUseCallbackCall, isUseContextCall, isUseDebugValueCall, isUseEffectCall, isUseImperativeHandleCall, isUseLayoutEffectCall, isUseMemoCall, isUseReducerCall, isUseRefCall, isUseStateCall, isValidComponentName, isValidReactHookName, unsafeIsDeclaredInRenderProp, unsafeIsDirectValueOfRenderProperty, unsafeIsInsideReactHookCall, unsafeIsReactHookCall, unsafeIsRenderFunction, unsafeIsRenderProp }; |
@@ -65,3 +65,3 @@ 'use strict'; | ||
} | ||
function getComponentIdentifier(node, context) { | ||
function getFunctionComponentIdentifier(node, context) { | ||
const { id, parent } = node; | ||
@@ -336,3 +336,3 @@ if (node.type === ast.NodeType.FunctionDeclaration) { | ||
]); | ||
const id = getComponentIdentifier(currentFn, context); | ||
const id = getFunctionComponentIdentifier(currentFn, context); | ||
const key = shared.uid.rnd(); | ||
@@ -359,3 +359,3 @@ const name = tools.O.flatMapNullable(id, getComponentNameFromIdentifier); | ||
} | ||
const id = getComponentIdentifier(node, context); | ||
const id = getFunctionComponentIdentifier(node, context); | ||
const key = shared.uid.rnd(); | ||
@@ -714,5 +714,5 @@ const name = tools.O.flatMapNullable(id, getComponentNameFromIdentifier); | ||
exports.componentCollectorLegacy = componentCollectorLegacy; | ||
exports.getComponentIdentifier = getComponentIdentifier; | ||
exports.getComponentInitPath = getComponentInitPath; | ||
exports.getComponentNameFromIdentifier = getComponentNameFromIdentifier; | ||
exports.getFunctionComponentIdentifier = getFunctionComponentIdentifier; | ||
exports.getParentClassComponent = getParentClassComponent; | ||
@@ -719,0 +719,0 @@ exports.hasCallInInitPath = hasCallInInitPath; |
{ | ||
"name": "@eslint-react/core", | ||
"version": "0.9.0-beta.2", | ||
"version": "0.9.0-beta.3", | ||
"description": "ESLint x React's ESLint utility module for static analysis of React core API and Patterns.", | ||
@@ -41,7 +41,7 @@ "homepage": "https://github.com/rel1cx/eslint-react", | ||
"@typescript-eslint/utils": "6.13.1", | ||
"@eslint-react/tools": "0.9.0-beta.2", | ||
"@eslint-react/ast": "0.9.0-beta.2", | ||
"@eslint-react/types": "0.9.0-beta.2", | ||
"@eslint-react/shared": "0.9.0-beta.2", | ||
"@eslint-react/jsx": "0.9.0-beta.2" | ||
"@eslint-react/jsx": "0.9.0-beta.3", | ||
"@eslint-react/ast": "0.9.0-beta.3", | ||
"@eslint-react/shared": "0.9.0-beta.3", | ||
"@eslint-react/types": "0.9.0-beta.3", | ||
"@eslint-react/tools": "0.9.0-beta.3" | ||
}, | ||
@@ -48,0 +48,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
140702
+ Added@eslint-react/ast@0.9.0-beta.3(transitive)
+ Added@eslint-react/jsx@0.9.0-beta.3(transitive)
+ Added@eslint-react/shared@0.9.0-beta.3(transitive)
+ Added@eslint-react/tools@0.9.0-beta.3(transitive)
+ Added@eslint-react/types@0.9.0-beta.3(transitive)
- Removed@eslint-react/ast@0.9.0-beta.2(transitive)
- Removed@eslint-react/jsx@0.9.0-beta.2(transitive)
- Removed@eslint-react/shared@0.9.0-beta.2(transitive)
- Removed@eslint-react/tools@0.9.0-beta.2(transitive)
- Removed@eslint-react/types@0.9.0-beta.2(transitive)