ESLint v9.19.0 released

We just pushed ESLint v9.19.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release.

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

  • 1637b8e feat: add --report-unused-inline-configs (#19201) (Josh Goldberg ✨)

Bug Fixes

  • aae6717 fix: sync rule type header comments automatically (#19276) (Francesco Trotta)

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: replace var with let and const 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: better global 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)

Chores

  • 9b9cb05 chore: upgrade @eslint/js@9.19.0 (#19371) (Milos Djermanovic)
  • 58560e7 chore: package.json update for @eslint/js release (Jenkins)
  • 2089707 test: fix failing test in Node.js v22.13.0 (#19345) (Francesco Trotta)

The latest ESLint news, case studies, tutorials, and resources.

ESLint v9.21.0 released
2 min read

ESLint v9.21.0 released

We just pushed ESLint v9.21.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release.

ESLint v9.20.1 released
1 min read

ESLint v9.20.1 released

We just pushed ESLint v9.20.1, which is a patch release upgrade of ESLint. This release fixes several bugs found in the previous release.