ESLint v6.0.0-rc.0 released
We just pushed ESLint v6.0.0-rc.0, which is a new prerelease version for ESLint v6. 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.
This is a summary of the major changes you need to know about for this version of ESLint.
- BigInt and dynamic import are at stage 4 (aside from some TC39 formalities), so we have begun to accept PRs to incorporate them into core ESLint rules. The
valid-typeofrule now supports BigInt. Please see #11803 to track our progress in fully supporting these newly standardized language features.
sort-keysrule now supports a
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 firstname.lastname@example.org --save-dev
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.
f403b07Update: introduce minKeys option to sort-keys rule (fixes #11624) (#11625) (Christian)
e4ab053Update: support “bigint” in valid-typeof rule (#11802) (Colin Ihrig)
endColumnto no-useless-escape (fixes #11629) (#11790) (Pig Fang)
9590587Update: improve reported location of arrow-parens (fixes #11773) (#11775) (Pig Fang)
87451f4Fix: no-octal should report NonOctalDecimalIntegerLiteral (fixes #11794) (#11805) (Milos Djermanovic)
overrideshandle relative paths as expected (fixes #11577) (#11799) (Toru Nagashima)
5509cdfFix: fails the test case if autofix made syntax error (fixes #11615) (#11798) (Toru Nagashima)
cb1922bFix: show custom message for namespace import (fixes #11580) (#11791) (Pig Fang)