Highlights
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-typeof
rule now supports BigInt. Please see #11803 to track our progress in fully supporting these newly standardized language features. - The
sort-keys
rule now supports aminKeys
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 eslint@6.0.0-rc.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.
Features
Enhancements
f403b07
Update: introduce minKeys option to sort-keys rule (fixes #11624) (#11625) (Christian)e4ab053
Update: support “bigint” in valid-typeof rule (#11802) (Colin Ihrig)37e5193
Update: addendColumn
to no-useless-escape (fixes #11629) (#11790) (Pig Fang)9590587
Update: improve reported location of arrow-parens (fixes #11773) (#11775) (Pig Fang)
Bug Fixes
87451f4
Fix: no-octal should report NonOctalDecimalIntegerLiteral (fixes #11794) (#11805) (Milos Djermanovic)21f3131
Fix:overrides
handle relative paths as expected (fixes #11577) (#11799) (Toru Nagashima)5509cdf
Fix: fails the test case if autofix made syntax error (fixes #11615) (#11798) (Toru Nagashima)cb1922b
Fix: show custom message for namespace import (fixes #11580) (#11791) (Pig Fang)