ESLint v8.x reached end-of-life on 2024-10-05 and is no longer maintained. Upgrade or consider long-term support options

ESLint v9.0.0-alpha.2 released

We just pushed ESLint v9.0.0-alpha.2, which is a major release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release. This release also has some breaking changes, so please read the following closely.

Highlights

This is a summary of the major changes you need to know about for this version of ESLint.

Installing

Since this is a pre-release version, you will not automatically be upgraded by npm. You must specify the next tag when installing:

npm i eslint@next --save-dev

You can also specify the version directly:

npm i eslint@9.0.0-alpha.2 --save-dev

Migration Guide

As there are a lot of changes, we’ve created a migration guide describing the breaking changes in great detail along with the steps you should take to address them. We expect that most users should be able to upgrade without any build changes, but the migration guide should be a useful resource if you encounter problems.

no-restricted-imports configuration improvements

In v8.x, if multiple entries in the paths array of your configuration for the no-restricted-imports rule had the same name property, only the last one would apply. In v9.0.0, all entries apply, allowing for specifying different error messages for different imported names.

RuleTester checks for duplicate tests

As of v9.0.0, RuleTester detects and reports duplicate test cases.

Breaking Changes

Features

Bug Fixes

  • 39076fb fix: handle absolute file paths in RuleTester (#17989) (Nitin Kumar)

Documentation

Chores

  • 6ffdcbb chore: upgrade @eslint/js@9.0.0-alpha.2 (#18038) (Milos Djermanovic)
  • 2c12715 chore: package.json update for @eslint/js release (Jenkins)
  • cc74c4d chore: upgrade espree@10.0.0 (#18037) (Milos Djermanovic)
  • dfb68b6 chore: use Node.js 20 for docs sites (#18026) (Milos Djermanovic)
  • 8c1b8dd test: add more tests for ignoring files and directories (#18018) (Milos Djermanovic)
  • 60b966b chore: update dependency @eslint/js to v9.0.0-alpha.1 (#18014) (renovate[bot])
  • c893bc0 chore: update markdownlint to v0.33.0 (#17995) (Nitin Kumar)

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

ESLint v9.15.0 released
2 min read

ESLint v9.15.0 released

We just pushed ESLint v9.15.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.14.0 released
2 min read

ESLint v9.14.0 released

We just pushed ESLint v9.14.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.13.0 released
1 min read

ESLint v9.13.0 released

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