ESLint v1.4.0 released

We just pushed ESLint v1.4.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

This release contains some exciting new features!

Autofixing of some rules

ESLint v1.4.0 introduces the --fix command line argument to automatically fix some rules. In this first release, we have implemented autofixing in three rules:

  1. semi
  2. eqeqeq
  3. quotes

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.

Cached results

If you’re running ESLint on a large codebase, you may find it can take a significant amount of time. To help in those situations, we’ve introduced the --cache flag. When --cache is present, ESLint will cache the results of the run in .eslintcache. The next time you run ESLint with the --cache flag, it will skip over any files that had no problems in the previous run unless they have been modified.

The cache is deleted the next time you run ESLint without --cache, so you can’t accidentally use it.

Command line globs

You can pass glob patterns to ESLint on the command line:

$ eslint lib/**/*.js

New rules

This release features several new rules:

Features

Enhancements

Bug Fixes

Documentation

Dependency Upgrades


+