
Highlights
- We have added a new
--env-infoCLI option, which provides a lot of information that is useful for GitHub issues. - The
use-isnanrule supports a new option,enforceForSwitchCase. - The
indentrule now supports JSXFragment nodes.
In addition, many rules that removed comments during autofix have been modified to avoid removing comments. Please open an issue if you find any more cases that need to be fixed.
Features
Enhancements
73596cbUpdate: Add enforceForSwitchCase option to use-isnan (#12106) (Milos Djermanovic)334ca7cUpdate: no-useless-rename also reports default values (fixes #12301) (#12322) (Kai Cataldo)41bfe91Update: Fix handling of chained new expressions in new-parens (#12303) (Milos Djermanovic)11ae6fcUpdate: Fix call, new and member expressions in no-extra-parens (#12302) (Milos Djermanovic)d4f9a16Update: add support for JSXFragments in indent rule (fixes #12208) (#12210) (Kai Cataldo)
Bug Fixes
d592a24Fix: exclude\u000dso new line won’t convert to text (fixes #12027) (#12031) (zamboney)e85d27aFix: no-regex-spaces false positives and invalid autofix (fixes #12226) (#12231) (Milos Djermanovic)b349bf7Fix: prefer-named-capture-group incorrect locations (fixes #12233) (#12247) (Milos Djermanovic)7dc1ea9Fix: no-useless-return autofix removes comments (#12292) (Milos Djermanovic)0e68677Fix: no-extra-bind autofix removes comments (#12293) (Milos Djermanovic)6ad7e86Fix: no-extra-label autofix removes comments (#12298) (Milos Djermanovic)acec201Fix: no-undef-init autofix removes comments (#12299) (Milos Djermanovic)d89390bFix: use async reading of stdin in bin/eslint.js (fixes #12212) (#12230) (Barrie Treloar)8316e7bFix: no-useless-rename autofix removes comments (#12300) (Milos Djermanovic)f5537b2Fix: prefer-numeric-literals autofix removes comments (#12313) (Milos Djermanovic)
Documentation
9b86167Docs: Add new ES environments to Configuring ESLint (#12289) (Milos Djermanovic)c9aeab2Docs: Add supported ECMAScript version to README (#12290) (Milos Djermanovic)2c6bf8eDocs: English fix (#12306) (Daniel Nixon)2e202caDocs: fix links in array-callback-return (#12288) (Milos Djermanovic)e39c631Docs: add example for CLIEngine#executeOnText 3rd arg (#12286) (Kai Cataldo)9984c3eDocs: Update README team and sponsors (ESLint Jenkins)

