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:recommended
has been updatedno-redeclare
has 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
6ae21a4
Breaking: fix config loading (fixes #11510, fixes #11559, fixes #11586) (#11546) (Toru Nagashima)0fc8e62
Breaking: eslint:recommended changes (fixes #10768) (#11518) (薛定谔的猫)20364cc
Breaking: make no-redeclare stricter (fixes #11370, fixes #11405) (#11509) (Toru Nagashima)
Features
Bug Fixes
252efd3
Fix: delete unnecessary duplicated question (fixes #11617) (#11618) (HelloRusk)1a3a88d
Fix: Curly rule incorrectly flagging lexical declarations (fixes #11663) (#11675) (Brian Kurek)f47d72c
Fix: not set ecmaVersion to 6 when sourceType=module (fixes #9687) (#11649) (薛定谔的猫)9484e9e
Fix: ignore return statements in dead code (fixes #11647) (#11688) (Toru Nagashima)aae6f65
Fix: don’t use deprecated API (#11689) (Toru Nagashima)e4400b5
Fix: require-atomic-updates false positive (fixes #11194, fixes #11687) (#11224) (Toru Nagashima)776b0fe
Fix: update rule message of no-throw-literal (fixes #11637) (#11638) (Pig Fang)67c08b6
Fix: consider comments in object-curly-spacing (fixes #11656) (#11657) (Pig Fang)b6d41cb
Fix: check token before using in no-cond-assign (fixes #11611) (#11619) (Pig Fang)1dfe077
Fix: autofix of no-unneeded-ternary made syntax error (fixes #11579) (#11616) (Toru Nagashima)
Documentation
e84b6f8
Docs: fix example in object-curly-newline docs (#11633) (golopot)483239e
Docs: updated ImportDeclaration in docs-rules-indent (#11679) (Alok Takshak)4b3b036
Docs: replacevar
withconst
in code examples (#11655) (Niyaz Akhmetov)f2e7828
Docs: Fix Node 6 LTS EOL date (#11676) (James Ross)adc6585
Docs: update status of breaking changes in migration guide (#11652) (Teddy Katz)eef71e4
Docs: add missing items to migration guide (#11628) (Teddy Katz)bebd079
Docs: fix grammar mistake in no-caller docs (#11623) (Daniel Lemay)
Build Related
Chores
f42d0af
Chore: lazy loading for rules (#11705) (Toru Nagashima)f5bae78
Chore: fix CLIEngine tests when os.tmpdir is a symlink (#11697) (Teddy Katz)e4a08ba
Chore: update eslint-plugin-node to 9.0.0 (#11670) (Toru Nagashima)7f290a9
Chore: add eslint as a devDependeny (#11654) (Toru Nagashima)139fd2f
Chore: add markdownlint-cli (#11653) (Toru Nagashima)8b4dba6
Chore: Add linting to git commit (#11556) (Nicholas C. Zakas)