Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 493 Bytes

File metadata and controls

21 lines (13 loc) · 493 Bytes

@eslint-react/core / useHookCollector

Function: useHookCollector()

function useHookCollector(context: RuleContext): ReturnType;

Get a ctx and visitor object for the rule to collect hooks

Parameters

Parameter Type Description
context RuleContext The ESLint rule context

Returns

ReturnType

The ctx and visitor of the collector