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
- 6ea3178Update: optional chaining support (fixes #12642) (#13416) (Toru Nagashima)
- f4d7b9eUpdate: deprecate id-blacklist rule (#13465) (Dimitri Mitropoulos)
- c8f9c82Update: Improve report location no-irregular-whitespace (refs #12334) (#13462) (Milos Djermanovic)
- 0af1d28Update: add allowSeparatedGroups option to sort-imports (fixes #12951) (#13455) (Milos Djermanovic)
- 1050ee7Update: Improve report location for no-unneeded-ternary (refs #12334) (#13456) (Milos Djermanovic)
- b77b420Update: Improve report location for max-len (refs #12334) (#13458) (Milos Djermanovic)
Bug Fixes
- a96bc5eFix: arrow-body-style fixer for- inwrap (fixes #11849) (#13228) (Anix)
- 095194cFix: add end location to reports in object-curly-newline (refs #12334) (#13460) (Milos Djermanovic)
- 10251bbFix: add end location to reports in keyword-spacing (refs #12334) (#13461) (Milos Djermanovic)
Documentation
- 885a145Docs: clarify behavior if- meta.fixableis omitted (refs #13349) (#13493) (Milos Djermanovic)
- 1a01b42Docs: Update technology sponsors in README (#13478) (Nicholas C. Zakas)
- f1cc725Docs: fix linebreaks between versions in changelog (#13488) (Milos Djermanovic)
- 61097feDocs: Update int rule level to string (#13483) (Brandon Mills)
- e951457Docs: fix wording in configuring.md (#13469) (Piper)
Dependency Upgrades
- 6ed9e8eUpgrade: lodash@4.17.19 (#13499) (Yohan Siguret)
- 748734fUpgrade: Updated puppeteer version to v4.0.0 (#13444) (odidev)
Build Related
- f2e68ecBuild: update webpack resolve.mainFields to match website config (#13457) (Milos Djermanovic)