
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-returnrule was added toeslint:recommendedin the last prerelease, but it has been removed fromeslint:recommendedin 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 ineslint:recommendedfor 4.0.0. - Three new utility methods have been added to the
SourceCodeAPI, andSourceCode#getCommentshas been deprecated. - One new rule has been added:
array-bracket-newline. - The
no-confusing-arrowrule can now be autofixed. - The
object-curly-newlinerule has a new option.
Breaking Changes
- fac53890 Breaking: Remove array-callback-return from recommended (fixes #8428) (#8433) (Kai Cataldo)
Features
- 7bc6fe0a New: array-bracket-newline rule (#8314) (Jan Peer Stöcklmair)
Enhancements
- b337738f Update: Add
consistentoption toobject-curly-newline(fixes #6488) (#7720) (Evilebot Tnawi) - 53fefb3b Update: add fix for no-confusing-arrow (#8347) (Mordy Tikotzky)
- 735d02d5 Update: Deprecate sourceCode.getComments() (fixes #8408) (#8434) (Kai Cataldo)
- ac39e3b0 Update: no-unexpected-multiline to flag confusing division (fixes #8469) (#8475) (Teddy Katz)
- 9f540fd2 Update: no-unused-vars false negative about destructuring (fixes #8442) (#8459) (Toru Nagashima)
Bug Fixes
Documentation
- b0dadfe3 Docs: Update comments section of Migrating to v4.0.0 (#8486) (Kai Cataldo)
- 973adeb6 Docs: State that functions option only applies in ES2017 (fixes #7809) (#8468) (Thenaesh Elango)
- 741ed393 Docs: Clarify how to run local ESLint installation (#8463) (Kai Cataldo)
- 48700fc8 Docs: Remove extra header line from LICENSE (#8448) (Teddy Katz)
- 0c2a386e Docs: clarify new indent behavior with MemberExpressions (#8432) (Teddy Katz)
- 446b8876 Docs: update space-before-function-paren docs for 4.0 (fixes #8430) (#8431) (Teddy Katz)
Dependency Upgrades
Build Related
- 1c7efbd2 Build: changelog update for 4.0.0-alpha.1 (Kai Cataldo)

