Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 690 Bytes

File metadata and controls

26 lines (18 loc) · 690 Bytes

@eslint-react/core / isInitializedFromReact

Function: isInitializedFromReact()

function isInitializedFromReact(
   name: string, 
   initialScope: Scope, 
   importSource: string): boolean;

Check if a variable is initialized from React import

Parameters

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")

Returns

boolean

True if the variable is initialized or derived from React import