ESLint v5.9.0 released

by Nicholas C. Zakas - 9 November 2018

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.


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.



Bug Fixes


Dependency Upgrades

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


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