
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-newlinerule has a newmultiline-argumentsoption.
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 eslint@6.0.0-alpha.0 --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
- 9e49b56Breaking: upgrade espree to 6.0.0-alpha.0 (fixes #9687) (#11610) (Teddy Katz)
- ef7801eBreaking: disallow invalid rule defaults in RuleTester (fixes #11473) (#11599) (Teddy Katz)
- 4e7cdcaBreaking: comma-dangle enable functions: “never” (fixes #11502) (#11519) (薛定谔的猫)
- 12f256fBreaking: no-confusing-arrow enable allowParens: true (fixes #11503) (#11520) (薛定谔的猫)
- 25cc63dBreaking: simplify config/plugin/parser resolution (fixes #10125) (#11388) (Teddy Katz)
- fd1c91bBreaking: throw an error for invalid global configs (refs #11338) (#11517) (Teddy Katz)
- be83322Breaking: Remove extra rules from eslint:recommended (fixes #10873) (#11357) (Kevin Partington)
- 2543f11Breaking: remove deprecated experimentalObjectRestSpread option (#11420) (Teddy Katz)
- 0fb5fd4Breaking: interpret rule options as unicode regexes (fixes #11423) (#11516) (Teddy Katz)
- 6e7da57Breaking: drop Node.js 6 support (fixes #11456) (#11557) (Toru Nagashima)
Enhancements
- 5cfdc2dUpdate: Improve no-loop-func rule description and message (#11046) (Pedro Lopes)
- 2f8ae13Update: support single argument on newline with function-paren-newline (#11406) (Vladlen Grachev)
Bug Fixes
- 0127d10Fix: no-var fixed to incorrect code (fixes #11441) (#11443) (薛定谔的猫)
- 608a02cFix: object-shorthand ignoreConstructors option (fixes #11595) (#11596) (overlookmotel)
- b92ca6eFix: getErrorResults function to not mutate passed parameter (#11592) (danielamaia)
- 19248e0Fix: make- overrides[].filesmatching dotfiles (fixes #11201) (#11225) (Toru Nagashima)
Documentation
- 8bfd1d1Docs: add v6.0.0 migration guide (#11515) (Teddy Katz)
- cbdee62Docs: README updates to reflect JSCS compat project is finished (#11568) (Kevin Partington)
- 595de40Docs: edit arrow-parens as-needed explanation (fixes #11202) (#11569) (Logan Lowder)
- a73b4b8Docs: Update README team and sponsors (ESLint Jenkins)
Dependency Upgrades
- eeea893Upgrade: update js-yaml package to 3.13.1 version (#11607) (Pobegaylo Maksim)
- e70d5f7Upgrade: compatible deps (#11608) (薛定谔的猫)
- 3396c3eUpgrade: karma@^4.0.1, drops Node 6 support, fixes vulnerability (#11570) (Kevin Partington)
