
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
falsevalue, “readable” global variables are in scope but cannot be written to. - “writeable”: Equivalent to the old
truevalue, “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
0a3c3ffNew: Allow globals to be disabled/configured with strings (fixes #9940) (#11338) (Teddy Katz)
Enhancements
b5143bfUpdate: for-direction detection false positives/negatives (#11254) (Ruben Bridgewater)
Bug Fixes
5b14ad1Fix: false positive in no-constant-condition (fixes #11306) (#11308) (Pig Fang)6567c4fFix: only remove arrow before body in object-shorthand (fixes #11305) (#11307) (Pig Fang)
Documentation
fa2f370Docs: update rule configuration values in examples (#11323) (Kai Cataldo)c464e27Docs: Renameresult->foo(#11210) (Alexis Tyler)
Chores
91c8884Chore: use local function to append “s” instead of a package (#11293) (Timo Tijhof)9005e63Chore: increase camelcase test coverage (#11299) (Redmond Tran)dccee63Chore: avoid hard-coding the list of core rules in eslint:recommended (#11336) (Teddy Katz)c1fd6f5Chore: remove undocumentedLinter#rulesproperty (refs #9161) (#11335) (Teddy Katz)36e3356Chore: remove dead code for loading rules (#11334) (Teddy Katz)

