ESLint v7.5.0 released
by Kai Cataldo - 18 July 2020We just pushed ESLint v7.5.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release.
Highlights
Optional Chaining Support
Support for optional chaining has landed in ESLint!
const maybeProp = obj.first?.second;
The default parser and built-in rules will support this syntax when you enable parserOptions.ecmaVersion: 2020
in your configuration:
{
"parserOptions": {
"ecmaVersion": 2020
}
}
Deprecating id-blacklist
id-blacklist
has been deprecated and replaced with id-denylist
. We renamed id-blacklist
to id-denylist
in the previous release (v7.4.0), which unfortunately led to some unintended breakages in the ESLint ecosystem. In this release, we have added back the id-blacklist
rule and have marked it as deprecated. If you are currently using id-blacklist
, we recommend switching to id-denylist
to ensure you receive bug fixes and updates to the rule in future releases.
Enhancements
6ea3178
Update: optional chaining support (fixes #12642) (#13416) (Toru Nagashima)f4d7b9e
Update: deprecate id-blacklist rule (#13465) (Dimitri Mitropoulos)c8f9c82
Update: Improve report location no-irregular-whitespace (refs #12334) (#13462) (Milos Djermanovic)0af1d28
Update: add allowSeparatedGroups option to sort-imports (fixes #12951) (#13455) (Milos Djermanovic)1050ee7
Update: Improve report location for no-unneeded-ternary (refs #12334) (#13456) (Milos Djermanovic)b77b420
Update: Improve report location for max-len (refs #12334) (#13458) (Milos Djermanovic)
Bug Fixes
a96bc5e
Fix: arrow-body-style fixer forin
wrap (fixes #11849) (#13228) (Anix)095194c
Fix: add end location to reports in object-curly-newline (refs #12334) (#13460) (Milos Djermanovic)10251bb
Fix: add end location to reports in keyword-spacing (refs #12334) (#13461) (Milos Djermanovic)
Documentation
885a145
Docs: clarify behavior ifmeta.fixable
is omitted (refs #13349) (#13493) (Milos Djermanovic)1a01b42
Docs: Update technology sponsors in README (#13478) (Nicholas C. Zakas)f1cc725
Docs: fix linebreaks between versions in changelog (#13488) (Milos Djermanovic)61097fe
Docs: Update int rule level to string (#13483) (Brandon Mills)e951457
Docs: fix wording in configuring.md (#13469) (Piper)
Dependency Upgrades
6ed9e8e
Upgrade: lodash@4.17.19 (#13499) (Yohan Siguret)748734f
Upgrade: Updated puppeteer version to v4.0.0 (#13444) (odidev)
Build Related
f2e68ec
Build: update webpack resolve.mainFields to match website config (#13457) (Milos Djermanovic)