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 v8.46.0 released
2 min read

ESLint v8.46.0 released

We just pushed ESLint v8.46.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.45.0 released
2 min read

ESLint v8.45.0 released

We just pushed ESLint v8.45.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.44.0 released
2 min read

ESLint v8.44.0 released

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