disallow-tombi-empty-files-include
Disallow invalid files.include pattern lists in standalone Tombi config files.
Rule catalog ID: R005
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 files.include values that are present but malformed: non-array values, empty arrays, and empty string patterns inside the [files] section. It does not require files.include to be configured because Tombi provides a default include pattern.
Why this rule existsโ
An invalid include list usually means the config was scaffolded but never finished. That can make a Tombi-backed ESLint run look clean while no project TOML files are intended.
โ Incorrectโ
[files]
include = []
[files]
include = "**/*.toml"
โ Correctโ
[format]
[files]
include = ["**/*.toml"]