Friday, 12 April, 2019 UTC


Summary

ESLint v6.0.0-alpha.0 released
We just pushed ESLint v6.0.0-alpha.0, 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.
Highlights
Most of the highlights of this release are breaking changes, and are discussed further in the migration guide.
Non-breaking highlights:
  • The function-paren-newline rule has a new multiline-arguments option.

Installing

Since this is a pre-release version, you will not automatically be upgraded by npm. You must specify the next tag when installing:
npm i eslint@next --save-dev 
You can also specify the version directly:
npm i [email protected] --save-dev 

Migration Guide

As there are a lot of changes, we’ve created a migration guide describing the changes in great detail along with the steps you should take to address them. We expect that most users should be able to upgrade without any build changes, but the migration guide should be a useful resource if you encounter problems.
Breaking Changes
  • 9e49b56 Breaking: upgrade espree to 6.0.0-alpha.0 (fixes #9687) (#11610) (Teddy Katz)
  • ef7801e Breaking: disallow invalid rule defaults in RuleTester (fixes #11473) (#11599) (Teddy Katz)
  • 4e7cdca Breaking: comma-dangle enable functions: “never” (fixes #11502) (#11519) (薛定谔的猫)
  • 12f256f Breaking: no-confusing-arrow enable allowParens: true (fixes #11503) (#11520) (薛定谔的猫)
  • 25cc63d Breaking: simplify config/plugin/parser resolution (fixes #10125) (#11388) (Teddy Katz)
  • fd1c91b Breaking: throw an error for invalid global configs (refs #11338) (#11517) (Teddy Katz)
  • be83322 Breaking: Remove extra rules from eslint:recommended (fixes #10873) (#11357) (Kevin Partington)
  • 2543f11 Breaking: remove deprecated experimentalObjectRestSpread option (#11420) (Teddy Katz)
  • 0fb5fd4 Breaking: interpret rule options as unicode regexes (fixes #11423) (#11516) (Teddy Katz)
  • 6e7da57 Breaking: drop Node.js 6 support (fixes #11456) (#11557) (Toru Nagashima)
Enhancements
  • 5cfdc2d Update: Improve no-loop-func rule description and message (#11046) (Pedro Lopes)
  • 2f8ae13 Update: support single argument on newline with function-paren-newline (#11406) (Vladlen Grachev)
Bug Fixes
  • 0127d10 Fix: no-var fixed to incorrect code (fixes #11441) (#11443) (薛定谔的猫)
  • 608a02c Fix: object-shorthand ignoreConstructors option (fixes #11595) (#11596) (overlookmotel)
  • b92ca6e Fix: getErrorResults function to not mutate passed parameter (#11592) (danielamaia)
  • 19248e0 Fix: make overrides[].files matching dotfiles (fixes #11201) (#11225) (Toru Nagashima)
Documentation
  • 8bfd1d1 Docs: add v6.0.0 migration guide (#11515) (Teddy Katz)
  • cbdee62 Docs: README updates to reflect JSCS compat project is finished (#11568) (Kevin Partington)
  • 595de40 Docs: edit arrow-parens as-needed explanation (fixes #11202) (#11569) (Logan Lowder)
  • a73b4b8 Docs: Update README team and sponsors (ESLint Jenkins)
Dependency Upgrades
  • eeea893 Upgrade: update js-yaml package to 3.13.1 version (#11607) (Pobegaylo Maksim)
  • e70d5f7 Upgrade: compatible deps (#11608) (薛定谔的猫)
  • 3396c3e Upgrade: karma@^4.0.1, drops Node 6 support, fixes vulnerability (#11570) (Kevin Partington)
Chores
  • 3d9e137 Chore: fix test that fails when the CWD contains a space (#11612) (Teddy Katz)