
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
312a88fNew: Add grouped-accessor-pairs rule (fixes #12277) (#12331) (Milos Djermanovic)6eaad96New: Add suggestions API (#12384) (Will Douglas)1a2eb99New: new rule no-constructor-return (fixes #12481) (#12529) (Pig Fang)ca3b2a6New: ignorePatterns in config files (refs eslint/rfcs#22) (#12274) (Toru Nagashima)17a8849New: Add no-dupe-else-if rule (fixes #12469) (#12504) (Milos Djermanovic)45aa6a3New: Add no-setter-return rule (fixes #12285) (#12346) (Milos Djermanovic)41b1e43New: add option for camelcase (fixes #12527) (#12528) (Pig Fang)de65de6New: Add prefer-exponentiation-operator rule (fixes #10482) (#12360) (Milos Djermanovic)e17fb90New: allowAfterThisConstructor for no-underscore-dangle (fixes #11488) (#11489) (sripberger)
Enhancements
5c68f5fUpdate: Add ‘lexicalBindings’ to no-implicit-globals and change messages (#11996) (Milos Djermanovic)97c745dUpdate: Report assignment expression location in no-cond-assign (#12465) (Milos Djermanovic)0f01f3dUpdate: Check member expressions withthisin operator-assignment (#12495) (Milos Djermanovic)4f8a1eeUpdate: Add enforceForClassMembers option to no-useless-computed-key (#12110) (ark120202)41a78fdUpdate: improve location for semi and comma-dangle (#12380) (Chiawen Chen)b8030fcUpdate: deprecate personal config (fixes #11914, refs eslint/rfcs#32) (#12426) (Toru Nagashima)6503cb8Update: Fix uglified object align in key-spacing (fixes #11414) (#12472) (YeonJuan)0f7edefUpdate: add react plugin config for eslint init (#12446) (Ibrahim Rouis)448ff1eUpdate: Report ‘\08’ and ‘\09’ in no-octal-escape (fixes #12080) (#12526) (Milos Djermanovic)90305e0Update: Depcrecate isSpaceBetweenTokens() (#12519) (Kai Cataldo)990065eUpdate: curly multi-or-nest flagging semis on next line (fixes #12370) (#12378) (cherryblossom000)7e41355Update: improve report location for space-infix-ops (#12324) (Chiawen Chen)94ff921Update: Add capIsConstructor option to no-invalid-this (fixes #12271) (#12308) (Milos Djermanovic)c78f4a7Update: Allow JSX exception in no-inline-comments (fixes #11270) (#12388) (Milos Djermanovic)
Bug Fixes
b336fbeFix: indent rule with JSX spread props (#12581) (Nathan Woltman)62c7038Fix: invalid token checking in computed-property-spacing (fixes #12198) (#12533) (YeonJuan)62623f9Fix: preserve whitespace in multiline-comment-style (fixes #12312) (#12316) (Kai Cataldo)fed20bbFix: require-await crash on global await (#12571) (Brad Zacher)40c8c32Fix: improve report location for object-curly-spacing (#12563) (Milos Djermanovic)1110045Fix: ignore marker-only comments in spaced-comment (fixes #12036) (#12558) (Milos Djermanovic)0afb518Fix: invalid autofix in function-call-argument-newline (fixes #12454) (#12539) (YeonJuan)9e29e18Fix: sourceCode#isSpaceBetweenTokens() checks non-adjacent tokens (#12491) (Kai Cataldo)bb556d5Fix: curlymultireports single lexical declarations (fixes #11908) (#12513) (Milos Djermanovic)ac60621Fix: unexpected autofix in prefer-const (fixes #12514) (#12521) (YeonJuan)084a8a6Fix: no-cond-assign withalwaysoption reports switch case clauses (#12470) (Milos Djermanovic)
Documentation
60204a3Docs: Added another Textmate 2 bundle. (#12580) (Ryan Fitzer)0a480f8Docs: Change “Code Conventions” link in pull-requests.md (#12401) (Denis Sikuler)40791afDocs: clarify ignoreDestructuring option in the camelcase rule (#12553) (Milos Djermanovic)0286b57Docs: Clean up Getting Started Guide (#12544) (Nicholas C. Zakas)5868550Docs: add notice aboutfunctionkeyword in keyword-spacing (#12524) (Pig Fang)4e142eaDocs: Update README team and sponsors (ESLint Jenkins)
Dependency Upgrades
f49f1e0Upgrade: upgrade optionator to avoid license issue (fixes #11536) (#12537) (Pig Fang)98e1d50Upgrade: globals to v12.1.0 (#12296) (Tony Brix)

