ParseForESLintOptions Type — react Architecture
Architecture documentation for the ParseForESLintOptions type/interface in hermes-eslint.d.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 4f29556e_a13a_ef60_2819_b79995aca6de["ParseForESLintOptions"] fa77a821_f0be_a12e_e3c7_0b5fe6f2670b["hermes-eslint.d.ts"] 4f29556e_a13a_ef60_2819_b79995aca6de -->|defined in| fa77a821_f0be_a12e_e3c7_0b5fe6f2670b style 4f29556e_a13a_ef60_2819_b79995aca6de fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/eslint-plugin-react-hooks/src/types/hermes-eslint.d.ts lines 11–56
type ParseForESLintOptions = {
/**
* Whether the whole script is executed under node.js environment.
* When enabled, the scope manager adds a function scope immediately following the global scope.
* Defaults to `false`.
*/
globalReturn: boolean;
/**
* The identifier that's used for JSX Element creation (after transpilation).
* This should not be a member expression - just the root identifier (i.e. use "React" instead of "React.createElement").
*
* To use the new global JSX transform function, you can explicitly set this to `null`.
*
* Defaults to `"React"`.
*/
jsxPragma: string | null;
/**
* The identifier that's used for JSX fragment elements (after transpilation).
* If `null`, assumes transpilation will always use a member on `jsxFactory` (i.e. React.Fragment).
* This should not be a member expression - just the root identifier (i.e. use "h" instead of "h.Fragment").
* Defaults to `null`.
*/
jsxFragmentName: string | null;
/**
* The source type of the script.
*/
sourceType: 'script' | 'module';
/**
* Ignore <fbt /> JSX elements when adding references to the module-level `React` variable.
* FBT is JSX that's transformed to non-JSX and thus references differently
*
* https://facebook.github.io/fbt/
*/
fbt: boolean;
/**
* Support experimental component syntax
*
* Defaults to `true`.
*/
enableExperimentalComponentSyntax?: boolean;
};
Source
Frequently Asked Questions
What is the ParseForESLintOptions type?
ParseForESLintOptions is a type/interface in the react codebase, defined in packages/eslint-plugin-react-hooks/src/types/hermes-eslint.d.ts.
Where is ParseForESLintOptions defined?
ParseForESLintOptions is defined in packages/eslint-plugin-react-hooks/src/types/hermes-eslint.d.ts at line 11.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free