Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 678 Bytes

File metadata and controls

26 lines (18 loc) · 678 Bytes

@eslint-react/core / isFunctionWithLooseComponentName

Function: isFunctionWithLooseComponentName()

function isFunctionWithLooseComponentName(
   context: RuleContext, 
   fn: TSESTreeFunction, 
   allowNone: boolean): boolean;

Check if a function has a loose component name

Parameters

Parameter Type Default value Description
context RuleContext undefined The rule context
fn TSESTreeFunction undefined The function to check
allowNone boolean false Whether to allow no name

Returns

boolean

Whether the function has a loose component name