Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 448 Bytes

File metadata and controls

21 lines (13 loc) · 448 Bytes

@eslint-react/core / isHookCall

Function: isHookCall()

function isHookCall(node: Node | undefined): node is CallExpression;

Check if the given node is a React Hook call by its name.

Parameters

Parameter Type Description
node Node | undefined The node to check.

Returns

node is CallExpression

true if the node is a React Hook call, false otherwise.