ESLint v7.3.0 released
by Brandon Mills - 19 June 2020We just pushed ESLint v7.3.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
- The new no-promise-executor-return rule prevents returning unreadable values from inside new Promise(...)executors.
- The new no-unreachable-loop rule catches loops that are guaranteed to execute only once.
- Several rules have been updated to report more accurate source code locations.
- Several rule option schemas have been improved to catch configuration typos.
Features
- 9e1414eNew: Add no-promise-executor-return rule (fixes #12640) (#12648) (Milos Djermanovic)
- b550330New: Add no-unreachable-loop rule (fixes #12381) (#12660) (Milos Djermanovic)
Enhancements
- 638a6d6Update: add missing- additionalProperties: falseto some rules' schema (#13198) (Milos Djermanovic)
- 949a5cdUpdate: fix operator-linebreak overrides schema (#13199) (Milos Djermanovic)
- 09cc0a2Update: max-lines reporting loc improvement (refs #12334) (#13318) (Anix)
- ee2fc2eUpdate: object-property-newline end location (refs #12334) (#13399) (Anix)
- d98152aUpdate: added empty error array check for false negative (#13200) (Anix)
- 7686d7fUpdate: semi-spacing should check do-while statements (#13358) (Milos Djermanovic)
- cbd0d00Update: disallow multiple options in comma-dangle schema (fixes #13165) (#13166) (Milos Djermanovic)
- 13999d2Update: curly should check consequent- ifstatements (#12947) (Milos Djermanovic)
- 6cfbd03Update: Drop @typescript-eslint/eslint-recommended from- eslint --init(#13340) (Minh Nguyen)
- 2a21049Update: key-spacing loc changes for extra space (refs #12334) (#13362) (Anix)
Bug Fixes
Documentation
- 9d0186eDocs: Fix changelog versions (#13410) (Tony Brix)
- 1ee3c42Docs: On maxEOF with eol-last (fixes #12742) (#13374) (Arthur Dias)
- 0f1f5edDocs: Add security policy link to README (#13403) (Nicholas C. Zakas)