ErrorSeverity Type — react Architecture
Architecture documentation for the ErrorSeverity type/interface in CompilerError.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD c2e88af3_071b_8b6f_4afd_7b924363fef8["ErrorSeverity"] e96f281e_f381_272d_2359_3e6a091c9a1d["CompilerError.ts"] c2e88af3_071b_8b6f_4afd_7b924363fef8 -->|defined in| e96f281e_f381_272d_2359_3e6a091c9a1d style c2e88af3_071b_8b6f_4afd_7b924363fef8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts lines 37–57
export enum ErrorSeverity {
/**
* An actionable error that the developer can fix. For example, product code errors should be
* reported as such.
*/
Error = 'Error',
/**
* An error that the developer may not necessarily be able to fix. For example, syntax not
* supported by the compiler does not indicate any fault in the product code.
*/
Warning = 'Warning',
/**
* Not an error. These will not be surfaced in ESLint, but may be surfaced in other ways
* (eg Forgive) where informational hints can be shown.
*/
Hint = 'Hint',
/**
* These errors will not be reported anywhere. Useful for work in progress validations.
*/
Off = 'Off',
}
Source
Frequently Asked Questions
What is the ErrorSeverity type?
ErrorSeverity is a type/interface in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts.
Where is ErrorSeverity defined?
ErrorSeverity is defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts at line 37.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free