Published under: Release Notes
2 min read
Highlights
- For clarity configuration of global variables has been enhanced with two additional values
readonly
andwritable
. All previous values are still valid. - The prefer-destructuring rule is now auto-fixable.
- Auto-fix was removed from prefer-spread to avoid creating invalid code.
--init
CLI command has been updated to streamline available options.
Features
a23d197
New: add allowSingleLineBlocks opt. to padded-blocks rule (fixes #7145) (#11243) (richie3366)
Enhancements
51c4972
Update: Behavior of --init (fixes #11105) (#11332) (Nicholas C. Zakas)550de1e
Update: usedefault
keyword in JSON schema (fixes #9929) (#11288) (Pig Fang)983c520
Update: Use ‘readonly’ and ‘writable’ for globals (fixes #11359) (#11384) (Nicholas C. Zakas)3c90dd7
Update: remove prefer-spread autofix (fixes #11330) (#11365) (薛定谔的猫)5eb3121
Update: add fixer forprefer-destructuring
(fixes #11151) (#11301) (golopot)533d240
Update: no-shadow-restricted-names lets unassigned vars shadow undefined (#11341) (Teddy Katz)d0e823a
Update: Make --init run js config files through linter (fixes #9947) (#11337) (Brian Kurek)
Bug Fixes
85a04b3
Fix: adds conditional for separateRequires in one-var (fixes #10179) (#10980) (Scott Stern)ab8ac6a
Fix: Support boundary spread elements in sort-keys (#11158) (Jakub Rożek)e25e7aa
Fix: comma-spacing ignore comma before closing paren (fixes #11295) (#11374) (Pig Fang)84ce72f
Fix: Remove extraneous linefeeds inone-var
fixer (fixes #10741) (#10955) (st-sloth)92fc2f4
Fix: CircularJSON dependency warning (fixes #11052) (#11314) (Terry)
Documentation
104ae88
Docs: Update governance doc with reviewers status (#11399) (Nicholas C. Zakas)a1f7c44
Docs: fix space-before-blocks correct code for “classes”: “never” (#11391) (PoziWorld)14f58a2
Docs: fix grammar in object-curly-spacing docs (#11389) (PoziWorld)d3e9a27
Docs: fix grammar in “those who says” (#11390) (PoziWorld)ea8e804
Docs: Add note about support for object spread (fixes #11136) (#11395) (Steven Thomas)95aa3fd
Docs: Update README team and sponsors (ESLint Jenkins)ad7a380
Docs: Update README team and sponsors (ESLint Jenkins)3e0c417
Docs: Fix grammar in “there’s nothing prevent you” (#11385) (PoziWorld)de988bc
Docs: Fix grammar: Spacing improve -> Spacing improves (#11386) (PoziWorld)1e56897
Docs: “the function actually use”: use -> uses (#11380) (PoziWorld)5a71bc9
Docs: Update README team and sponsors (ESLint Jenkins)82a58ce
Docs: Update README team and sponsors (ESLint Jenkins)546d355
Docs: Update README with latest sponsors/team data (#11378) (Nicholas C. Zakas)c0df9fe
Docs:...
is not an operator (#11232) (Felix Kling)7ecfdef
Docs: update typescript parser (refs #11368) (#11369) (薛定谔的猫)173eb38
Docs: Clarify ecmaVersion doesn’t imply globals (refs #9812) (#11364) (Keith Maxwell)389362a
Docs: clarify motivation for no-prototype-builtins (#11356) (Teddy Katz)4dd19a3
Docs: mention ‘prefer-spread’ in docs of ‘no-useless-call’ (#11348) (Klaus Meinhardt)4fd83d5
Docs: fix a misleading example in one-var (#11350) (薛定谔的猫)
Dependency Upgrades
0c02932
Upgrade: espree@5.0.1 (#11401) (Ilya Volodin)f1d3a7e
Upgrade: some deps (fixes #11372) (#11373) (薛定谔的猫)