ESLint v6.2.0 released
by Kai Cataldo - 18 August 2019We just pushed ESLint v6.2.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
- This release adds support for ES2020 syntax, which includes support for Dynamic Imports and
BigInt
. This can be enabled usingecmaVersion: 2020
in your configuration file. - A new rule,
function-call-argument-newline
, has been added. - Many bug fixes thanks to @mdjermanovic!
Features
afd8012
New: noInlineConfig setting (refs eslint/rfcs#22) (#12091) (Toru Nagashima)8cd00b3
New: function-call-argument-newline (#12024) (finico)
Enhancements
fee6acb
Update: support bigint and dynamic import (refs #11803) (#11983) (Toru Nagashima)3d12378
Update: Fix accessor-pairs to enforce pairs per property in literals (#12062) (Milos Djermanovic)2dc23b8
Update: fix no-dupe-keys false negatives on empty string names (#12069) (Milos Djermanovic)d642150
Update: Check empty string property names in sort-keys (#12073) (Milos Djermanovic)1aff8fc
Update: warn about mixing ternary and logical operators (fixes #11704) (#12001) (Karthik Priyadarshan)fbec99e
Update: fix class-methods-use-this false negatives with exceptMethods (#12077) (Milos Djermanovic)f5e0cc4
Update: Check computed method keys in no-extra-parens (#11973) (Milos Djermanovic)5831767
Update: report location of func-names (fixes #12022) (#12028) (Pig Fang)
Bug Fixes
30ebf92
Fix: prefer-template autofix produces syntax error with octal escapes (#12085) (Milos Djermanovic)13c3988
Fix: Check literal type explicitly in dot-notation (#12095) (Milos Djermanovic)3e5ceca
Fix: Handle empty string property names in getFunctionNameWithKind (#12104) (Milos Djermanovic)9a043ff
Fix: no-duplicate-case false positives on Object.prototype keys (#12107) (Milos Djermanovic)4cb7877
Fix: fix no-extra-parens ignores some nodes (#11909) (Pig Fang)19ab666
Fix: yoda exceptRange false positives on empty string property names (#12071) (Milos Djermanovic)acce6de
Fix: class-methods-use-this reports 'undefined' names (#12103) (Milos Djermanovic)92ec2cb
Fix: Allow bind call with a single spread element in no-extra-bind (#12088) (Milos Djermanovic)bfdb0c9
Fix: no-extra-boolean-cast invalid autofix for Boolean() without args (#12076) (Milos Djermanovic)cf31dab
Fix: no-restricted-syntax - correct the schema (#12051) (Brad Zacher)
Documentation
01d38ce
Docs: Remove TDZ scope from the scope manager interface documentation (#12054) (Milos Djermanovic)11be2f8
Docs: do not recommend global-installed usage (#12016) (薛定谔的猫)fb08b7c
Docs: Remove readonly/writable global logic from no-undef (fixes #11963) (#12053) (Milos Djermanovic)d961438
Docs: Fix Incorrect Documentation (#12045) (Michael Miceli)d90183f
Docs: add a case to func-names (#12038) (Chiawen Chen)8a5b62d
Docs: no use eslint.linter in code example (#12037) (薛定谔的猫)
Chores
fe631af
Chore: minor typo fix (#12112) (James George)34ccc0c
Chore: Remove TDZ scope type condition from no-unused-vars (#12055) (Milos Djermanovic)