Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 438 Bytes

File metadata and controls

21 lines (13 loc) · 438 Bytes

@eslint-react/core / isHook

Function: isHook()

function isHook(node: TSESTreeFunction | undefined): boolean;

Determine if a function node is a React Hook based on its name.

Parameters

Parameter Type Description
node TSESTreeFunction | undefined The function node to check

Returns

boolean

True if the function is a React Hook, false otherwise