@eslint-react/core / isUseEffectLikeCall
function isUseEffectLikeCall(node: Node | undefined, additionalEffectHooks?: RegExpLike): node is CallExpression;Detect useEffect calls and variations (useLayoutEffect, etc.) using a regex pattern
| Parameter | Type | Description |
|---|---|---|
node |
Node | undefined |
The AST node to check |
additionalEffectHooks |
RegExpLike |
Regex pattern matching custom hooks that should be treated as effect hooks |
node is CallExpression
True if the node is a useEffect-like call