Skip to content

Commit

Permalink
docs: Publish v9.19.0 release highlights (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic authored Jan 24, 2025
1 parent 65b648f commit 9a1d765
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions src/content/blog/2025-01-24-eslint-v9.19.0-released.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,42 @@ layout: post
title: ESLint v9.19.0 released
teaser: "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."
image: release-notes-minor.png
draft: true
authors:
- eslintbot
- mdjermanovic
categories:
- Release Notes
tags:
- Release
---


## Highlights

### Reporting unused `/* eslint */` config comments

This release introduces a new config option [`linterOptions.reportUnusedInlineConfigs`](/docs/latest/use/configure/configuration-files#reporting-unused-inline-configs) and corresponding CLI option [`--report-unused-inline-configs`](/docs/latest/use/command-line-interface#--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.

```js
// eslint.config.js
export default [
{
linterOptions: {
reportUnusedInlineConfigs: "error"
},
rules: {
"no-unused-vars": ["error", { ignoreRestSiblings: true }]
}
}
];
```

```js
// my-file.js

/* eslint no-unused-vars: ["error", { "ignoreRestSiblings": true }] -- this inline config will be reported as unused */
```



Expand Down

0 comments on commit 9a1d765

Please sign in to comment.