ESLint v5.9.0 released

We just pushed ESLint v5.9.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

The following are the most important changes in this release.

The --fix-type option

This version introduces a new --fix-type option for the command line interface. This option allows you to filter the type of fixes applied when using --fix. You can specify the type of fixes to apply based on the new rule types we’ve assigned to each rule. The three rule types are:

  1. problem - the rule flags a potential problem with your code.
  2. suggestion - the rule flags something that could be done in a better or preferred way.
  3. layout - the rule flags changes limited to whitespace, semicolons, commas, or parentheses.

You might find this option useful if you’re using a source code formatter with ESLint, in which case you might want to use --fix-type problem,suggestion to only apply fixes for rules that won’t clash with your formatter.

There is also a new fixTypes option that can be passed to the CLIEngine class that implements the same feature for those using the API.

Note: Fixes in custom rules will not be applied when using --fix-type unless they include a meta.type field. If you are maintaining a plugin with custom rules, please update your rules.

Features

Enhancements

Bug Fixes

Documentation

Dependency Upgrades

  • 607635d Upgrade: eslint-plugin-node & eslint-plugin (#11067) (薛定谔的猫)

Chores

  • 0800b20 Chore: fix invalid super() calls in tests (#11054) (Teddy Katz)

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

ESLint v9.0.0 released
12 min read

ESLint v9.0.0 released

We just pushed ESLint v9.0.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.

Introducing ESLint Config Inspector
2 min read

Introducing ESLint Config Inspector

Introducing the ESLint Config Inspector, a visual tool to help you understand and inspect ESLint flat configuration files.

ESLint v9.0.0-rc.0 released
2 min read

ESLint v9.0.0-rc.0 released

We just pushed ESLint v9.0.0-rc.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.