rules
- Type:
Record<string, RuleSeverity | readonly [RuleSeverity, ...options]> - RuleSeverity:
'off' | 'warn' | 'error' | 0 | 1 | 2
Configures individual rules with a severity level and optional positional options.
Use a severity directly when a rule has no options to configure:
Use an array to pass every item after the severity to the rule as a positional option:
Invalid severities and rule value shapes are rejected while the configuration is loaded.
Merging
Later matching config entries override earlier entries. When a later entry changes only the severity, the rule keeps options from the earlier entry. Supplying any positional option in the later array replaces all earlier options.
See Rules & Presets for preset selection, or browse the complete Rules reference for rule-specific options.