Highlights
This is a summary of some of the notable changes in this version of ESLint.
New Rules
Two new rules were added:
Autofixing
Autofix support was added to one rule:
Features
- 05e7432 New:
no-multi-assign
rule (fixes #6424) (#7904) (Stewart Rand) - f091d95 New:
prefer-promise-reject-errors
rule (fixes #7685) (#7689) (Teddy Katz)
Enhancements
- 243e47d Update: Add fixer for no-else-return (fixes #7863) (#7864) (Xander Dumaine)
- a664e8a Update: add ignoreJSX option to no-extra-parens (Fixes #7444) (#7926) (Robert Rossmann)
- bd5e219 Update: ensure brace-style validates class bodies (fixes #7608) (#7871) (Teddy Katz)
- 55f0cb6 Update: refactor brace-style and fix inconsistencies (fixes #7869) (#7870) (Teddy Katz)
Bug Fixes
- 506324a Fix:
no-var
does not fix if causes ReferenceError (fixes #7950) (#7953) (Toru Nagashima) - ca01e00 Fix: recognize all line terminators in func-call-spacing (fixes #7923) (#7924) (Francesco Trotta)
- 8ac3518 Fix: no-useless-computed-key false positive with
__proto__
(#7934) (Teddy Katz) - 7e04b33 Fix: Ignore inline plugin rule config in autoconfig (fixes #7860) (#7919) (Ian VanSchooten)
- 6448ba0 Fix: add parentheses in no-extra-boolean-cast autofixer (fixes #7912) (#7914) (Szymon Przybylski)
- b3f2094 Fix: brace-style crash with lone block statements (fixes #7908) (#7909) (Teddy Katz)
- 427543a Fix: catastrophic backtracking in astUtils linebreak regex (fixes #7893) (#7898) (Teddy Katz)
- 995554c Fix: Correct typos in no-alert.md and lib/ast-utils.js (#7905) (Stewart Rand)
Documentation
- c835e19 Docs: remove reference to deleted rule (#7942) (Alejandro Oviedo)
- 3c1e63b Docs: Improve examples for no-case-declarations (fixes #6716) (#7920) (Kevin Rangel)
- 5eb2e88 Docs: Correct typos in configuring.md (#7916) (Gabriel Delépine)