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.
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 a minKeys
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:
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
d662b17
New: Add classname attribute to JUnit testcase (refs #11068) (#11683) (Fabio Pitino)
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: add endColumn
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)
Documentation
20908a3
Docs: removed ‘>’ prefix from from docs/working-with-rules (#11818) (Alok Takshak)
Build Related
ad4b048
Build: Fix typo in blog post template (fixes #11614) (#11782) (Kai Cataldo)
Chores
e0fafc8
Chore: removes unnecessary assignment in loop (#11780) (Dimitri Mitropoulos) 8eaa9b2
Chore: remove incorrect comment (#11769) (薛定谔的猫) 4039a49
Chore: add .github/funding.yml (#11764) (Toru Nagashima)