ESLint v5.13.0 released
by Brandon Mills - 1 February 2019We just pushed ESLint v5.13.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
Configuration of globals
has been improved with three new options: "off", "readable", and "writeable".
- "off": Completely disables a global variable that was previously defined.
- "readable": Equivalent to the old
false
value, "readable" global variables are in scope but cannot be written to. - "writeable": Equivalent to the old
true
value, "writeable" global variables can be read from and written to.
Configurations using the old true
/false
values will continue to work, but we encourage you to use the newer, more explicit options.
Check out the documentation on specifying globals for more details!
Features
0a3c3ff
New: Allow globals to be disabled/configured with strings (fixes #9940) (#11338) (Teddy Katz)
Enhancements
b5143bf
Update: for-direction detection false positives/negatives (#11254) (Ruben Bridgewater)
Bug Fixes
5b14ad1
Fix: false positive in no-constant-condition (fixes #11306) (#11308) (Pig Fang)6567c4f
Fix: only remove arrow before body in object-shorthand (fixes #11305) (#11307) (Pig Fang)
Documentation
fa2f370
Docs: update rule configuration values in examples (#11323) (Kai Cataldo)c464e27
Docs: Renameresult
->foo
(#11210) (Alexis Tyler)
Chores
91c8884
Chore: use local function to append "s" instead of a package (#11293) (Timo Tijhof)9005e63
Chore: increase camelcase test coverage (#11299) (Redmond Tran)dccee63
Chore: avoid hard-coding the list of core rules in eslint:recommended (#11336) (Teddy Katz)c1fd6f5
Chore: remove undocumentedLinter#rules
property (refs #9161) (#11335) (Teddy Katz)36e3356
Chore: remove dead code for loading rules (#11334) (Teddy Katz)