@eslint-react/core / hasNoneOrLooseComponentName
function hasNoneOrLooseComponentName(context: RuleContext, fn: TSESTreeFunction): boolean;Check if the function has no name or a loose component name
| Parameter | Type | Description |
|---|---|---|
context |
RuleContext |
The rule context |
fn |
TSESTreeFunction |
The function node |
boolean