ESLint v10.0.0-alpha.1 released

We just pushed ESLint v10.0.0-alpha.1, 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 version of ESLint is not ready for production use and is provided to gather feedback from the community before releasing the final version. Please let us know if you having any problems or feedback by creating issues on our GitHub repo.

Most of the highlights of this release are breaking changes, and are discussed further in the migration guide. There are summaries of the significant changes below. (Less significant changes are included in the migration guide.)

This prerelease version of ESLint has a separate documentation section.

Removed deprecated SourceCode methods

The following SourceCode methods are no longer available:

  • getTokenOrCommentBefore() - Use getTokenBefore() with the { includeComments: true } option instead
  • getTokenOrCommentAfter() - Use getTokenAfter() With the { includeComments: true } option instead
  • isSpaceBetweenTokens() - Use isSpaceBetween() instead
  • getJSDocComment() - No replacement

Users of plugins that haven’t updated their code yet can use the @eslint/compat utility in the meantime.

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@10.0.0-alpha.1 --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.

Breaking Changes

  • fa31a60 feat!: add name to configs (#20015) (Kirk Waiblinger)
  • 3383e7e fix!: remove deprecated SourceCode methods (#20137) (Pixel998)
  • 501abd0 feat!: update dependency minimatch to v10 (#20246) (renovate[bot])
  • ca4d3b4 fix!: stricter rule tester assertions for valid test cases (#20125) (唯然)

Features

Documentation

Chores

  • 0b14059 chore: package.json update for @eslint/js release (Jenkins)
  • d6e7bf3 ci: bump actions/checkout from 5 to 6 (#20350) (dependabot[bot])
  • 139d456 chore: require mandatory headers in rule docs (#20347) (Milos Djermanovic)
  • 3b0289c chore: remove unused .eslintignore and test fixtures (#20316) (Pixel998)
  • a463e7b chore: update dependency js-yaml to v4 [security] (#20319) (renovate[bot])
  • ebfe905 chore: remove redundant rules from eslint-config-eslint (#20327) (Milos Djermanovic)
  • 88dfdb2 test: add regression tests for message placeholder interpolation (#20318) (fnx)
  • 6ed0f75 chore: skip type checking in eslint-config-eslint (#20323) (Francesco Trotta)

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

ESLint v10.0.0-alpha.0 released
4 min read

ESLint v10.0.0-alpha.0 released

We just pushed ESLint v10.0.0-alpha.0, 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.

ESLint v9.39.1 released
1 min read

ESLint v9.39.1 released

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

ESLint v9.39.0 released
2 min read

ESLint v9.39.0 released

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