ESLint v8.0.0-beta.1 released

We just pushed ESLint v8.0.0-beta.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

  • Beta testing revealed that the impact of the breaking change to allow line comment directives for all directives that previously required block comments outweighs the benefits of this feature due to a high number of accidental directives, so we decided to revert this change and exclude this feature from v8.0.0.
  • Code Path Analysis now supports ES2022 class fields. In particular, each class field initializer now starts a separate code path. A new origin property has been added to CodePath objects.
  • The meta.docs.category property has been removed from all core rules.

Since this is a beta release, it is not expected to be ready for production, but please try it and report any unexpected issues.

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@8.0.0-beta.1 --save-dev

Migration Guide

As there are a lot of changes, we’ve created a migration guide describing the 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

  • 305e14a Breaking: remove meta.docs.category in core rules (fixes #13398) (#14594) (薛定谔的猫)

Enhancements

Bug Fixes

Documentation

  • c74fe08 Build: Force prerelease peer dep for Node 16 in CI (#14933) (Brandon Mills)

Chores

  • db15183 Chore: Refactor comments of tests (#14956) (TagawaHirotaka)
  • a79c9f3 Chore: Enforce jsdoc check-line-alignment never (#14955) (Brett Zamir)
  • 2d18db6 Chore: add test for merging parserOptions in Linter (#14948) (Milos Djermanovic)
  • 9a4ae3b Chore: Apply comment require-description and check ClassDeclaration (#14949) (Brett Zamir)
  • 8344675 Chore: fix small typo (#14951) (Sosuke Suzuki)
  • 58840ac Chore: Update jsdoc plugin and tweak rules in effect (#14814) (Brett Zamir)

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

ESLint v8.30.0 released
1 min read

ESLint v8.30.0 released

We just pushed ESLint v8.30.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 v8.29.0 released
1 min read

ESLint v8.29.0 released

We just pushed ESLint v8.29.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 v8.28.0 released
1 min read

ESLint v8.28.0 released

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