@eslint-react/core / isInitializedFromReact
function isInitializedFromReact(
name: string,
initialScope: Scope,
importSource: string): boolean;Check if a variable is initialized from React import
| Parameter | Type | Default value | Description |
|---|---|---|---|
name |
string |
undefined |
The variable name |
initialScope |
Scope |
undefined |
The initial scope |
importSource |
string |
"react" |
Alternative import source of React (e.g., "preact/compat") |
boolean
True if the variable is initialized or derived from React import