{"action":"closed","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/3627","labels_url":"https://api.github.com/repos/eslint/eslint/issues/3627/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/3627/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/3627/events","html_url":"https://github.com/eslint/eslint/issues/3627","id":104397385,"number":3627,"title":"comma-dangle = always-multiline and the spread operator","user":{"login":"fatfisz","id":6004414,"avatar_url":"https://avatars.githubusercontent.com/u/6004414?v=3","gravatar_id":"","url":"https://api.github.com/users/fatfisz","html_url":"https://github.com/fatfisz","followers_url":"https://api.github.com/users/fatfisz/followers","following_url":"https://api.github.com/users/fatfisz/following{/other_user}","gists_url":"https://api.github.com/users/fatfisz/gists{/gist_id}","starred_url":"https://api.github.com/users/fatfisz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatfisz/subscriptions","organizations_url":"https://api.github.com/users/fatfisz/orgs","repos_url":"https://api.github.com/users/fatfisz/repos","events_url":"https://api.github.com/users/fatfisz/events{/privacy}","received_events_url":"https://api.github.com/users/fatfisz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/accepted","name":"accepted","color":"0052cc"},{"url":"https://api.github.com/repos/eslint/eslint/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/eslint/eslint/labels/rule","name":"rule","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"mysticatea","id":1937871,"avatar_url":"https://avatars.githubusercontent.com/u/1937871?v=3","gravatar_id":"","url":"https://api.github.com/users/mysticatea","html_url":"https://github.com/mysticatea","followers_url":"https://api.github.com/users/mysticatea/followers","following_url":"https://api.github.com/users/mysticatea/following{/other_user}","gists_url":"https://api.github.com/users/mysticatea/gists{/gist_id}","starred_url":"https://api.github.com/users/mysticatea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysticatea/subscriptions","organizations_url":"https://api.github.com/users/mysticatea/orgs","repos_url":"https://api.github.com/users/mysticatea/repos","events_url":"https://api.github.com/users/mysticatea/events{/privacy}","received_events_url":"https://api.github.com/users/mysticatea/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-09-02T03:46:28Z","updated_at":"2015-09-07T23:41:45Z","closed_at":"2015-09-07T23:41:45Z","body":"There is a bit of an issue with `comma-dangle` set to `\"always-multiline\"` and the spread operator used in a destructuring assignment:\r\n\r\n```\r\nvar [\r\n  x,\r\n  y,\r\n  ...data // Getting \"missing trailing comma\" error\r\n] = parsed;\r\n```\r\n\r\nFor compliance with [spec](http://www.ecma-international.org/ecma-262/6.0/#sec-destructuring-assignment) there should be no comma after the `AssignmentRestElement` and I think that `\"always-multiline\"` should treat this as a special case and ignore the missing trailing comma.\r\n\r\nFor now I'm ignoring the error for this line.\r\n\r\nThe version I have is 1.2.1."}}