ESLint v6.4.0 released
by Ilya Volodin - 13 September 2019We just pushed ESLint v6.4.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
- Three new rules: no-import-assign, prefer-regex-literals, default-param-last
- accessor-pairs and computed-property-spacing rules has been updated with a new option
enforceForClassMembers
Features
1c921c6New: add no-import-assign (fixes #12237) (#12252) (Toru Nagashima)3be04fdNew: Add prefer-regex-literals rule (fixes #12238) (#12254) (Milos Djermanovic)0313441New: add rule default-param-last (fixes #11361) (#12188) (Chiawen Chen)
Enhancements
540296fUpdate: enforceForClassMembers option to accessor-pairs (fixes #12063) (#12192) (Milos Djermanovic)d3c2334Update: flag nested block with declaration as error (#12193) (David Waller)b2498d2Update: Fix handling of property names in no-self-assign (#12105) (Milos Djermanovic)1ee61b0Update: enforceForClassMembers computed-property-spacing (fixes #12049) (#12214) (Milos Djermanovic)db2a29bUpdate: indentation of comment followed by semicolon (fixes #12232) (#12243) (Kai Cataldo)37c0fdeUpdate: Report global Atomics calls in no-obj-calls (fixes #12234) (#12258) (Milos Djermanovic)e38f5fdUpdate: fix no-octal-escape false negatives after \0 (#12079) (Milos Djermanovic)7621f5dUpdate: add more specific linting messages to space-in-parens (#11121) (Che Fisher)
Bug Fixes
f826eabFix: Allow line comment exception in object-curly-spacing (fixes #11902) (#12216) (Milos Djermanovic)ae17d1cFix: no-sequences is reporting incorrect locations (#12241) (Milos Djermanovic)365331aFix: object-shorthand providing invalid fixes for typescript (#12260) (Brad Zacher)985c9e5Fix: space-before-function-paren autofix removes comments (fixes #12259) (#12264) (Milos Djermanovic)01da7d0Fix: eqeqeq rule reports incorrect locations (#12265) (Milos Djermanovic)a41fdc0Fix: Remove autofixer for no-unsafe-negation (#12157) (Milos Djermanovic)21eb904Fix: basePath of OverrideTester (fixes #12032) (#12205) (Toru Nagashima)2b1a13fFix: no-extra-boolean-cast reports wrong negation node (fixes #11324) (#12197) (Milos Djermanovic)e10eebaFix: quotes autofix produces syntax error with octal escape sequences (#12118) (Milos Djermanovic)
Documentation
e915fffDocs: Improve examples and clarify default option (#12067) (Yuping Zuo)520c922Docs: Added naming convention details to plugin usage (#12202) (Henrique Barcelos)319e4d8Docs: adding finally example (#12256) (Jens Melgaard)d52328fDocs: fix no-sequenceswithexamples (#12239) (Milos Djermanovic)a0a9746Docs: Fix link in no-irregular-whitespace.md (#12196) (Timo Tijhof)