Skip to main content

require-tombi-valid-lint-rule-levels

Require Tombi lint rule levels to be error, warn, or off.

Rule catalog ID: R007

Targeted pattern scopeโ€‹

This rule targets standalone Tombi config files visited by ESLint, normally through tombi.configs.configuration, tombi.configs.recommended, or tombi.configs.all.

What this rule reportsโ€‹

The rule reports string values under [lint.rules] that are not error, warn, or off.

Why this rule existsโ€‹

Tombi lint rule configuration should use explicit severity levels. This catches common misspellings such as warning before they become confusing config drift.

โŒ Incorrectโ€‹

[lint.rules]
array-values-order = "warning"

โœ… Correctโ€‹

[lint.rules]
array-values-order = "warn"

Further readingโ€‹