New rule: Disallow spacing between rest and spread operators and their expressions (rest-spread-spacing) #567

Closed
feross opened this Issue Jul 13, 2016 · 1 comment

Projects

None yet

1 participant

@feross
Owner
feross commented Jul 13, 2016

http://eslint.org/docs/rules/rest-spread-spacing

This one should be uncontroversial:

// BAD
fn(... args)
[... arr, 4, 5, 6]
let [a, b, ... arr] = [1, 2, 3, 4, 5]
function fn(... args) { console.log(args) }
let { x, y, ... z } = { x: 1, y: 2, a: 3, b: 4 }
let n = { x, y, ... z }

// GOOD
fn(...args)
[...arr, 4, 5, 6]
let [a, b, ...arr] = [1, 2, 3, 4, 5]
function fn(...args) { console.log(args) }
let { x, y, ...z } = { x: 1, y: 2, a: 3, b: 4 }
let n = { x, y, ...z }
@feross feross added this to the v8 milestone Jul 13, 2016
@feross feross referenced this issue Jul 13, 2016
Closed

Release proposal: standard v8 #564

16 of 16 tasks complete
@feross
Owner
feross commented Jul 13, 2016

No test failures at all on this one, and it's pretty obvious, so I'm just going to merge straight away so it can go into the standard v8 RC 👍

1..424
# tests 424
# pass  424

# ok

Collaborators/community folks, let me know if you disagree or have thoughts.

@feross feross added a commit to feross/eslint-config-standard that closed this issue Jul 13, 2016
@feross Disallow spacing between rest and spread operators and their expressi…
…ons (rest-spread-spacing)

Fixes feross/standard#567
df5deba
@saadq saadq referenced this issue in nodejs/nodejs.org Aug 25, 2016
Merged

Update dependencies #873

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment