LintRule Type — react Architecture
Architecture documentation for the LintRule type/interface in CompilerError.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 4d119569_007f_de5d_2512_83e591af9199["LintRule"] e96f281e_f381_272d_2359_3e6a091c9a1d["CompilerError.ts"] 4d119569_007f_de5d_2512_83e591af9199 -->|defined in| e96f281e_f381_272d_2359_3e6a091c9a1d style 4d119569_007f_de5d_2512_83e591af9199 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts lines 750–778
export type LintRule = {
// Stores the category the rule corresponds to, used to filter errors when reporting
category: ErrorCategory;
// Stores the severity of the error, which is used to map to lint levels such as error/warning.
severity: ErrorSeverity;
/**
* The "name" of the rule as it will be used by developers to enable/disable, eg
* "eslint-disable-nest line <name>"
*/
name: string;
/**
* A description of the rule that appears somewhere in ESLint. This does not affect
* how error messages are formatted
*/
description: string;
/**
* Configures the preset in which the rule is enabled. If 'off', the rule will not be included in
* any preset.
*
* NOTE: not all validations are enabled by default! Setting this flag only affects
* whether a given rule is part of the recommended set. The corresponding validation
* also should be enabled by default if you want the error to actually show up!
*/
preset: LintRulePreset;
};
Source
Frequently Asked Questions
What is the LintRule type?
LintRule is a type/interface in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts.
Where is LintRule defined?
LintRule is defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts at line 750.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free