Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 3.29 KB

File metadata and controls

28 lines (22 loc) · 3.29 KB

@eslint-react/core / FunctionComponentSemanticNode

Interface: FunctionComponentSemanticNode

Represents a React Function Component

Extends

Properties

Property Type Description Overrides Inherited from
directives StringLiteral[] The directives used in the function (e.g., "use strict", "use client", etc.) - -
displayName Expression | undefined The display name of the component - -
flag bigint Flags describing the component's characteristics SemanticNode.flag -
hint bigint Hint for how the component was detected SemanticNode.hint -
hookCalls CallExpression[] List of hook calls within the component - -
id | ArrayExpression | ArrayPattern | ArrowFunctionExpression | AssignmentExpression | AwaitExpression | PrivateInExpression | SymmetricBinaryExpression | CallExpression | ChainExpression | ClassExpression | ConditionalExpression | FunctionExpression | Identifier | ImportExpression | JSXElement | JSXFragment | BigIntLiteral | BooleanLiteral | NullLiteral | NumberLiteral | RegExpLiteral | StringLiteral | LogicalExpression | MemberExpressionComputedName | MemberExpressionNonComputedName | MetaProperty | NewExpression | ObjectExpression | ObjectPattern | PrivateIdentifier | SequenceExpression | Super | TaggedTemplateExpression | TemplateLiteral | ThisExpression | TSAsExpression | TSInstantiationExpression | TSNonNullExpression | TSSatisfiesExpression | TSTypeAssertion | UnaryExpressionBitwiseNot | UnaryExpressionDelete | UnaryExpressionMinus | UnaryExpressionNot | UnaryExpressionPlus | UnaryExpressionTypeof | UnaryExpressionVoid | UpdateExpression | YieldExpression | undefined The identifier or identifier sequence of the component SemanticNode.id -
initPath FunctionInitPath | undefined The initialization path of the function - -
isExportDefault boolean Indicates if the component is inside an export default declaration - -
isExportDefaultDeclaration boolean Indicates if the component is itself an export default declaration - -
key string - - SemanticNode.key
kind "function" The kind of component SemanticNode.kind -
name string | undefined - - SemanticNode.name
node TSESTreeFunction The AST node of the function SemanticNode.node -
rets (Expression | null)[] List of expressions returned by the component - -