Published under: Release Notes
2 min read
Highlights
- The
comma-style
rule now supports aNewExpression
option. - The
valid-jsdoc
rule can now be autofixed in some cases, and its error locations are more precise. - The
allowMultiplePropertiesPerLine
option in theobject-property-newline
rule has been renamed toallowAllPropertiesOnSameLine
to more clearly convey what the option does.allowMultiplePropertiesPerLine
still works, but has been deprecated.
Enhancements
- e26a25f Update: allow continue instead of if wrap in guard-for-in (fixes #7567) (#9796) (Michael Ficarra)
- af043eb Update: Add NewExpression support to comma-style (#9591) (Frazer McLean)
- 1d61930 Update: use doctrine range information in valid-jsdoc (#9831) (Teddy Katz)
- 133336e Update: fix indent behavior on template literal arguments (fixes #9061) (#9820) (Teddy Katz)
- add1e70 Update: fix indent bug on comments in ternary expressions (fixes #9729) (#9818) (Teddy Katz)
- 2cf4522 Update: Rename and deprecate object-property-newline option (#9570) (Jonathan Pool)
Bug Fixes
- 13bcf3c Fix: Removing curly quotes in no-eq-null report message (#9852) (Kevin Partington)
- ea1b15d Fix: avoid crashing on malformed configuration comments (fixes #9373) (#9819) (Teddy Katz)
- 6a5cd32 Fix: prefer-destructuring error with computed properties (fixes #9784) (#9817) (Teddy Katz)
Documentation
- b96fb31 Docs: configuration hierarchy for CLIEngine options (fixes #9526) (#9855) (PiIsFour)
- 8ccbdda Docs: Clarify that -c configs merge with
.eslintrc.*
(fixes #9535) (#9847) (Kevin Partington) - 978574f Docs: Fix examples for no-useless-escape (#9853) (Toru Kobayashi)
- 2e87ddd Docs: Sync messageId examples’ style with other examples (#9816) (Kevin Partington)
- 601f851 Docs: Minor modification to code comments for clarity (#9821) (rgovind92)
- b9da067 Docs: fix misleading info about RuleTester column numbers (#9830) (Teddy Katz)
- acde640 Docs: Add ES 2018 to Configuring ESLint (#9829) (Kai Cataldo)
- ccfce15 Docs: Minor tweaks to working with rules page (#9824) (Kevin Partington)
- 54b329a Docs: fix substitution of {{ name }} (#9822) (Andres Kalle)