Highlights
Most of the highlights of this release are breaking changes, and are discussed further in the migration guide.
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@7.0.0-alpha.1 --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.
Breaking Changes
4293229
Breaking: use-isnan enforceForSwitchCase defaulttrue
(fixes #12810) (#12913) (Milos Djermanovic)cf38d0d
Breaking: change default ignore pattern (refs eslint/rfcs#51) (#12888) (Toru Nagashima)bfe1dc4
Breaking: no-dupe-class-members checks some computed keys (fixes #12808) (#12837) (Milos Djermanovic)c2217c0
Breaking: makeradix
rule stricter (#12608) (fisker Cheung)
Enhancements
1ee6b63
Update: check template literal in yoda (fixes #12863) (#12876) (YeonJuan)439c833
Update: array-callback-return checks Array.forEach (fixes #12551) (#12646) (Gabriel R Sezefredo)03a69db
Update: check template literal in no-proto, no-iterator (fixes #12801) (#12806) (YeonJuan)562e784
Update: fix no-magic-numbers false negative with ignoreArrayIndexes (#12805) (Milos Djermanovic)0460748
Update: check template literal in no-constant-condition (fixes #12815) (#12816) (YeonJuan)
Bug Fixes
1f1424c
Fix: fix inconsistently works option in no-extra-parens (fixes #12717) (#12843) (YeonJuan)b5adcaa
Fix: make YieldExpression throwable (fixes #12880) (#12897) (YeonJuan)95e0586
Fix: id-blacklist false positives on renamed imports (#12831) (Milos Djermanovic)dadc892
Fix: operator-assignment crash on adjacent division assignment (#12844) (Milos Djermanovic)a9d92f9
Fix: radix rule crash on disabled globals (#12824) (Milos Djermanovic)533c114
Fix: multiline-comment-style rule add extra space after * (fixes #12785) (#12823) (Karthik Priyadarshan)80309c3
Fix: no-constant-condition doesn’t introspect arrays (fixes #12225) (#12307) (Sean Gray)
Documentation
f702b1a
Docs: Add missing plugin reference (#12796) (Eduard Bardají Puig)824d235
Docs: add errorOnUnmatchedPattern option to CLIEngine (#12834) (Arthur Denner)33efd71
Docs: Fix spelling mistakes (#12861) (Bryan Mishkin)a5b3c5f
Docs: Update README team and sponsors (ESLint Jenkins)d6c313d
Docs: add missing eslint comments in prefer-regex-literals examples (#12858) (Milos Djermanovic)aea1729
Docs: Fix anchor links in Node.js API TOC (#12821) (Matija Marohnić)
Chores
1907e57
Chore: add Twitter and Open Collective badge (#12877) (Kai Cataldo)b7f0d20
Chore: Use consistent badge style (#12825) (fisker Cheung)3734a66
Chore: use ids for messages (#12859) (Gareth Jones)0cae920
Chore: rename shadowed global (#12862) (Tony Brix)055b80d
Chore: Fix typo in complexity.js (#12864) (Kyle Shevlin)9f39ef0
Chore: typo in PULL_REQUEST_TEMPLATE.md (#12848) (Balázs Orbán)a60d5cd
Chore: typo in no-irregular-whitespace.js (#12847) (Balázs Orbán)691d19a
Chore: add missingecmaVersion
2020/11 type value (#12833) (Piotr Błażejewicz (Peter Blazejewicz))f5b9656
Chore: add test for no-constant-condition (#12836) (Milos Djermanovic)10a79a6
Chore: Adopteslint-plugin/require-meta-docs-description
internally (#12762) (Bryan Mishkin)