
Highlights
This release contains the following breaking changes:
- Updating default configuration options in core rules.
- Updating the rules recommended in
eslint:recommended. - Making RuleTester checks 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@7.0.0-alpha.2 --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
4af06fcBreaking: Test with an unknown error property should fail in RuleTester (#12096) (Milos Djermanovic)afa9aacBreaking: class defaulttruecomputed-property-spacing (fixes #12812) (#12915) (Milos Djermanovic)7d52151Breaking: classes defaulttruein accessor-pairs (fixes #12811) (#12919) (Milos Djermanovic)78182e4Breaking: Add new rules to eslint:recommended (fixes #12911) (#12920) (Milos Djermanovic)6423e11Breaking: check unnamed default export in func-names (fixes #12194) (#12195) (Chiawen Chen)
Enhancements
a5b41a7Update: no-restricted-modules handle TemplateLiteral (fixes #12926) (#12927) (Michal Piechowiak)051567aUpdate: check identifier in array pattern in id-length (fixes #12832) (#12839) (YeonJuan)9038a29Update: func-namesas-neededfalse negative with AssignmentPattern (#12932) (Milos Djermanovic)7747177Update: report rename id destructuring in id-blacklist (fixes #12807) (#12923) (YeonJuan)77df505Update: check renaming identifier in object destructuring (fixes 12827) (#12881) (YeonJuan)41de9dfUpdate: enforceForLogicalOperands no-extra-boolean-cast (fixes #12137) (#12734) (jmoore914)
Bug Fixes
afde78bFix: curly removes necessary braces between if and else (fixes #12928) (#12943) (Milos Djermanovic)4797fb2Fix: arrow-body-style crash with object literal body (fixes #12884) (#12886) (Milos Djermanovic)de14d1cFix: wrap-iife autofix removes mandatory parentheses (#12905) (Milos Djermanovic)5775b06Fix: Optionally allow underscores in member names (#11972) (Edgardo Avilés)0dfc3ffFix: add end location to report in no-eval (#12960) (Milos Djermanovic)
Documentation
b8e20d3Docs: Mention TypeScript’s compiler check (#12903) (Benny Neugebauer)e997f32Docs: Updated arrow-parens for minor grammar issue (#12962) (Tom)cf14355Docs: Fix links to custom parsers doc (#12965) (Brandon Mills)f479f6fDocs: References correct config file name (#12885) (Patrick Kilgore)8d5c434Docs: fix category descriptions for site generation (fixes #12894) (#12930) (Kai Cataldo)05380e6Docs: Remove claim about semicolons from docs (#12944) (Luke Sikina)

