
Highlights
Reporting unused /* eslint */
config comments
This release introduces a new config option linterOptions.reportUnusedInlineConfigs
and corresponding CLI option --report-unused-inline-configs
.
When this option is set to "warn"
or "error"
, ESLint will report inline rule configuration comments whose severity and options match what’s already been configured for the same rule.
// eslint.config.js
export default [
{
linterOptions: {
reportUnusedInlineConfigs: "error"
},
rules: {
"no-unused-vars": ["error", { ignoreRestSiblings: true }]
}
}
];
// my-file.js
/* eslint no-unused-vars: ["error", { "ignoreRestSiblings": true }] -- this inline config will be reported as unused */
Features
Bug Fixes
Documentation
cfea9ab
docs: Clarify overrideConfig option (#19370) (Nicholas C. Zakas)2b84f66
docs: Update README (#19362) (Nicholas C. Zakas)044f93c
docs: clarify frozen rule description (#19351) (Pavel)797ee7c
docs: fix Bluesky links (#19368) (Milos Djermanovic)81a9c0e
docs: Update README (GitHub Actions Bot)093fb3d
docs: replacevar
withlet
andconst
in rule examples (#19365) (Tanuj Kanti)417de32
docs: replace var with const in rule examples (#19352) (jj)17f2aae
docs: update getting-started config to match default generated config (#19308) (0xDev)8a0a5a8
docs: betterglobal ignores
instruction (#19297) (Jacopo Marrone)6671a2c
docs: Update README (GitHub Actions Bot)e39d3f2
docs: fix divider for rule category (#19264) (Tanuj Kanti)e0cf53f
docs: fix search result box position for small screens (#19328) (Tanuj Kanti)f92a680
docs: replace var with let or const in rule examples (#19331) (Ravi Teja Kolla)b04b84b
docs: revert accidental changes in TS config files docs (#19336) (Francesco Trotta)