@eslint-react/core / isFunctionWithLooseComponentName
function isFunctionWithLooseComponentName(
context: RuleContext,
fn: TSESTreeFunction,
allowNone: boolean): boolean;Check if a function has a loose component name
| 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 |
boolean
Whether the function has a loose component name