ESLint v4.0.0-alpha.1 released

by Teddy Katz - 21 April 2017

We just pushed ESLint v4.0.0-alpha.1, 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.

Note: This version of ESLint is not ready for production use and is provided to gather feedback from the community before releasing the final version. Please let us know if you having any problems or feedback by creating issues on our GitHub repo or joining our Gitter channel.

Highlights

  • The array-callback-return rule was added to eslint:recommended in the last prerelease, but it has been removed from eslint:recommended in this prerelease due to false positives that would occur when using methods in a few popular libraries. As a result, this rule will not be in eslint:recommended for 4.0.0.
  • Three new utility methods have been added to the SourceCode API, and SourceCode#getComments has been deprecated.
  • One new rule has been added: array-bracket-newline.
  • The no-confusing-arrow rule can now be autofixed.
  • The object-curly-newline rule has a new option.

Breaking Changes

Features

Enhancements

Bug Fixes

  • e35107f0 Fix: indent crash on arrow functions without parens at start of line (#8477) (Teddy Katz)

Documentation

Dependency Upgrades

  • 1c7efbd2 Build: changelog update for 4.0.0-alpha.1 (Kai Cataldo)

Chores

  • 10a1a2d7 Chore: Do not use cache when testing (#8464) (Kai Cataldo)
  • 161ee4ea Chore: avoid cloning comments array in TokenStore (#8436) (Teddy Katz)