ESLint v6.5.0 released
by Kai Cataldo - 29 September 2019We just pushed ESLint v6.5.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
- We have added a new
--env-info
CLI option, which provides a lot of information that is useful for GitHub issues. - The
use-isnan
rule supports a new option,enforceForSwitchCase
. - The
indent
rule 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
73596cb
Update: Add enforceForSwitchCase option to use-isnan (#12106) (Milos Djermanovic)334ca7c
Update: no-useless-rename also reports default values (fixes #12301) (#12322) (Kai Cataldo)41bfe91
Update: Fix handling of chained new expressions in new-parens (#12303) (Milos Djermanovic)11ae6fc
Update: Fix call, new and member expressions in no-extra-parens (#12302) (Milos Djermanovic)d4f9a16
Update: add support for JSXFragments in indent rule (fixes #12208) (#12210) (Kai Cataldo)
Bug Fixes
d592a24
Fix: exclude\u000d
so new line won't convert to text (fixes #12027) (#12031) (zamboney)e85d27a
Fix: no-regex-spaces false positives and invalid autofix (fixes #12226) (#12231) (Milos Djermanovic)b349bf7
Fix: prefer-named-capture-group incorrect locations (fixes #12233) (#12247) (Milos Djermanovic)7dc1ea9
Fix: no-useless-return autofix removes comments (#12292) (Milos Djermanovic)0e68677
Fix: no-extra-bind autofix removes comments (#12293) (Milos Djermanovic)6ad7e86
Fix: no-extra-label autofix removes comments (#12298) (Milos Djermanovic)acec201
Fix: no-undef-init autofix removes comments (#12299) (Milos Djermanovic)d89390b
Fix: use async reading of stdin in bin/eslint.js (fixes #12212) (#12230) (Barrie Treloar)8316e7b
Fix: no-useless-rename autofix removes comments (#12300) (Milos Djermanovic)f5537b2
Fix: prefer-numeric-literals autofix removes comments (#12313) (Milos Djermanovic)
Documentation
9b86167
Docs: Add new ES environments to Configuring ESLint (#12289) (Milos Djermanovic)c9aeab2
Docs: Add supported ECMAScript version to README (#12290) (Milos Djermanovic)2c6bf8e
Docs: English fix (#12306) (Daniel Nixon)2e202ca
Docs: fix links in array-callback-return (#12288) (Milos Djermanovic)e39c631
Docs: add example for CLIEngine#executeOnText 3rd arg (#12286) (Kai Cataldo)9984c3e
Docs: Update README team and sponsors (ESLint Jenkins)