
Highlights
Most of the highlights of this release are breaking changes, and are discussed further in the migration guide.
New breaking changes in this prerelease include:
- Some config-loading bugs have been fixed. This change involved some refactoring to how config files are processed internally. Please let us know if you encounter any problems relating to configuration in this release.
eslint:recommendedhas been updatedno-redeclarehas been made stricter
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.1 --save-dev
Migration Guide
If you’re upgrading from ESLint v5.x, we recommend looking at the migration guide, which describes 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
6ae21a4Breaking: fix config loading (fixes #11510, fixes #11559, fixes #11586) (#11546) (Toru Nagashima)0fc8e62Breaking: eslint:recommended changes (fixes #10768) (#11518) (薛定谔的猫)20364ccBreaking: make no-redeclare stricter (fixes #11370, fixes #11405) (#11509) (Toru Nagashima)
Features
Bug Fixes
252efd3Fix: delete unnecessary duplicated question (fixes #11617) (#11618) (HelloRusk)1a3a88dFix: Curly rule incorrectly flagging lexical declarations (fixes #11663) (#11675) (Brian Kurek)f47d72cFix: not set ecmaVersion to 6 when sourceType=module (fixes #9687) (#11649) (薛定谔的猫)9484e9eFix: ignore return statements in dead code (fixes #11647) (#11688) (Toru Nagashima)aae6f65Fix: don’t use deprecated API (#11689) (Toru Nagashima)e4400b5Fix: require-atomic-updates false positive (fixes #11194, fixes #11687) (#11224) (Toru Nagashima)776b0feFix: update rule message of no-throw-literal (fixes #11637) (#11638) (Pig Fang)67c08b6Fix: consider comments in object-curly-spacing (fixes #11656) (#11657) (Pig Fang)b6d41cbFix: check token before using in no-cond-assign (fixes #11611) (#11619) (Pig Fang)1dfe077Fix: autofix of no-unneeded-ternary made syntax error (fixes #11579) (#11616) (Toru Nagashima)
Documentation
e84b6f8Docs: fix example in object-curly-newline docs (#11633) (golopot)483239eDocs: updated ImportDeclaration in docs-rules-indent (#11679) (Alok Takshak)4b3b036Docs: replacevarwithconstin code examples (#11655) (Niyaz Akhmetov)f2e7828Docs: Fix Node 6 LTS EOL date (#11676) (James Ross)adc6585Docs: update status of breaking changes in migration guide (#11652) (Teddy Katz)eef71e4Docs: add missing items to migration guide (#11628) (Teddy Katz)bebd079Docs: fix grammar mistake in no-caller docs (#11623) (Daniel Lemay)
Build Related
Chores
f42d0afChore: lazy loading for rules (#11705) (Toru Nagashima)f5bae78Chore: fix CLIEngine tests when os.tmpdir is a symlink (#11697) (Teddy Katz)e4a08baChore: update eslint-plugin-node to 9.0.0 (#11670) (Toru Nagashima)7f290a9Chore: add eslint as a devDependeny (#11654) (Toru Nagashima)139fd2fChore: add markdownlint-cli (#11653) (Toru Nagashima)8b4dba6Chore: Add linting to git commit (#11556) (Nicholas C. Zakas)

