ESLint v1.5.0 released

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


Here are some highlights of changes in this release.

Autofixing of more rules

ESLint v1.5.0 introduces several more autofixing rules to use with the --fix command line argument. In this release, we have implemented autofixing in these rules:

  1. eol-last
  2. indent
  3. no-extra-semi
  4. no-spaced-func
  5. no-trailing-spaces
  6. space-after-keywords
  7. space-before-blocks
  8. space-before-keywords
  9. space-infix-ops
  10. space-return-throw-case
  11. space-before-function-paren

When you run ESLint on the command line with the --fix flag, it will automatically fix any problems that it can (not all problems are fixable at once) and will not report the problems that were fixed.

This feature is still considered experimental but is backed up by a lot of unit tests verifying correctness. Still, we expect to find some edge cases that we didn’t anticipate, so we’d appreciate your feedback.

Limitations: the --fix flag does not work for piped-in text and has no effect on code that uses ESLint processors.

–debug Flag

Sometimes ESLint doesn’t do what it’s supposed to do, and in that case, the new --debug flag can help. When using this flag, the command line will output debug information to the console, allowing you to see what ESLint is doing and providing valuable information to determine if there’s a bug. We may ask for the debug information when you report a possible bug.



Bug Fixes