Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 473 Bytes

File metadata and controls

20 lines (13 loc) · 473 Bytes

@eslint-react/core / hasNoneOrLooseComponentName

Function: hasNoneOrLooseComponentName()

function hasNoneOrLooseComponentName(context: RuleContext, fn: TSESTreeFunction): boolean;

Check if the function has no name or a loose component name

Parameters

Parameter Type Description
context RuleContext The rule context
fn TSESTreeFunction The function node

Returns

boolean