ESLint v6.7.0 released
by Kai Cataldo - 22 November 2019We just pushed ESLint v6.7.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
Suggestions API
This release contains a new Suggestions API for rule authors and integrations. You can read more about this exciting new feature here.
ignorePatterns
in config files
This release adds a new ignorePatterns
property in config files (including shareable configs) in order to control the files ESLint ignores. See also documentation.
New Rules
- grouped-accessor-pairs
- no-constructor-return
- no-dupe-else-if
- no-setter-return
- prefer-exponentiation-operator
Deprecations
Please note that these deprecated features may be removed in a future major release of ESLint.
- Personal configuration files
sourceCode#isSpaceBetweenTokens()
has been deprecated in favor ofsourceCode#isSpaceBetween()
.
Features
312a88f
New: Add grouped-accessor-pairs rule (fixes #12277) (#12331) (Milos Djermanovic)6eaad96
New: Add suggestions API (#12384) (Will Douglas)1a2eb99
New: new rule no-constructor-return (fixes #12481) (#12529) (Pig Fang)ca3b2a6
New: ignorePatterns in config files (refs eslint/rfcs#22) (#12274) (Toru Nagashima)17a8849
New: Add no-dupe-else-if rule (fixes #12469) (#12504) (Milos Djermanovic)45aa6a3
New: Add no-setter-return rule (fixes #12285) (#12346) (Milos Djermanovic)41b1e43
New: add option for camelcase (fixes #12527) (#12528) (Pig Fang)de65de6
New: Add prefer-exponentiation-operator rule (fixes #10482) (#12360) (Milos Djermanovic)e17fb90
New: allowAfterThisConstructor for no-underscore-dangle (fixes #11488) (#11489) (sripberger)
Enhancements
5c68f5f
Update: Add 'lexicalBindings' to no-implicit-globals and change messages (#11996) (Milos Djermanovic)97c745d
Update: Report assignment expression location in no-cond-assign (#12465) (Milos Djermanovic)0f01f3d
Update: Check member expressions withthis
in operator-assignment (#12495) (Milos Djermanovic)4f8a1ee
Update: Add enforceForClassMembers option to no-useless-computed-key (#12110) (ark120202)41a78fd
Update: improve location for semi and comma-dangle (#12380) (Chiawen Chen)b8030fc
Update: deprecate personal config (fixes #11914, refs eslint/rfcs#32) (#12426) (Toru Nagashima)6503cb8
Update: Fix uglified object align in key-spacing (fixes #11414) (#12472) (YeonJuan)0f7edef
Update: add react plugin config for eslint init (#12446) (Ibrahim Rouis)448ff1e
Update: Report '\08' and '\09' in no-octal-escape (fixes #12080) (#12526) (Milos Djermanovic)90305e0
Update: Depcrecate isSpaceBetweenTokens() (#12519) (Kai Cataldo)990065e
Update: curly multi-or-nest flagging semis on next line (fixes #12370) (#12378) (cherryblossom000)7e41355
Update: improve report location for space-infix-ops (#12324) (Chiawen Chen)94ff921
Update: Add capIsConstructor option to no-invalid-this (fixes #12271) (#12308) (Milos Djermanovic)c78f4a7
Update: Allow JSX exception in no-inline-comments (fixes #11270) (#12388) (Milos Djermanovic)
Bug Fixes
b336fbe
Fix: indent rule with JSX spread props (#12581) (Nathan Woltman)62c7038
Fix: invalid token checking in computed-property-spacing (fixes #12198) (#12533) (YeonJuan)62623f9
Fix: preserve whitespace in multiline-comment-style (fixes #12312) (#12316) (Kai Cataldo)fed20bb
Fix: require-await crash on global await (#12571) (Brad Zacher)40c8c32
Fix: improve report location for object-curly-spacing (#12563) (Milos Djermanovic)1110045
Fix: ignore marker-only comments in spaced-comment (fixes #12036) (#12558) (Milos Djermanovic)0afb518
Fix: invalid autofix in function-call-argument-newline (fixes #12454) (#12539) (YeonJuan)9e29e18
Fix: sourceCode#isSpaceBetweenTokens() checks non-adjacent tokens (#12491) (Kai Cataldo)bb556d5
Fix: curlymulti
reports single lexical declarations (fixes #11908) (#12513) (Milos Djermanovic)ac60621
Fix: unexpected autofix in prefer-const (fixes #12514) (#12521) (YeonJuan)084a8a6
Fix: no-cond-assign withalways
option reports switch case clauses (#12470) (Milos Djermanovic)
Documentation
60204a3
Docs: Added another Textmate 2 bundle. (#12580) (Ryan Fitzer)0a480f8
Docs: Change "Code Conventions" link in pull-requests.md (#12401) (Denis Sikuler)40791af
Docs: clarify ignoreDestructuring option in the camelcase rule (#12553) (Milos Djermanovic)0286b57
Docs: Clean up Getting Started Guide (#12544) (Nicholas C. Zakas)5868550
Docs: add notice aboutfunction
keyword in keyword-spacing (#12524) (Pig Fang)4e142ea
Docs: Update README team and sponsors (ESLint Jenkins)
Dependency Upgrades
f49f1e0
Upgrade: upgrade optionator to avoid license issue (fixes #11536) (#12537) (Pig Fang)98e1d50
Upgrade: globals to v12.1.0 (#12296) (Tony Brix)