@eslint-react/core / isHook
function isHook(node: TSESTreeFunction | undefined): boolean;Determine if a function node is a React Hook based on its name.
| Parameter | Type | Description |
|---|---|---|
node |
TSESTreeFunction | undefined |
The function node to check |
boolean
True if the function is a React Hook, false otherwise