{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/4481","labels_url":"https://api.github.com/repos/eslint/eslint/issues/4481/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/4481/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/4481/events","html_url":"https://github.com/eslint/eslint/issues/4481","id":117910159,"number":4481,"title":"Update in Escope 3.2.1 Breaking es6 Spreads","user":{"login":"dtothefp","id":4656726,"avatar_url":"https://avatars.githubusercontent.com/u/4656726?v=3","gravatar_id":"","url":"https://api.github.com/users/dtothefp","html_url":"https://github.com/dtothefp","followers_url":"https://api.github.com/users/dtothefp/followers","following_url":"https://api.github.com/users/dtothefp/following{/other_user}","gists_url":"https://api.github.com/users/dtothefp/gists{/gist_id}","starred_url":"https://api.github.com/users/dtothefp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtothefp/subscriptions","organizations_url":"https://api.github.com/users/dtothefp/orgs","repos_url":"https://api.github.com/users/dtothefp/repos","events_url":"https://api.github.com/users/dtothefp/events{/privacy}","received_events_url":"https://api.github.com/users/dtothefp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-19T21:19:44Z","updated_at":"2015-11-20T02:30:49Z","closed_at":null,"body":"Took me a while to find this but started to get an issue with `es6` spreads.\r\n\r\n<img width=\"578\" alt=\"screen shot 2015-11-19 at 4 17 35 pm\" src=\"https://cloud.githubusercontent.com/assets/4656726/11284660/115312ee-8ed9-11e5-9a99-12968f26f071.png\">\r\n\r\n```js\r\n//login-spec.js\r\n  const {makeGetters, makeActions, Getters, ...store} = loginData;\r\n  const reactor = registerStores(store);\r\n```\r\n\r\n```js\r\n//eslint.config.json\r\n{\r\n  \"parser\": \"babel-eslint\",\r\n  \"plugins\": [\r\n    \"react\"\r\n  ],\r\n  \"env\": {\r\n    \"browser\": true\r\n  },\r\n  \"ecmaFeatures\": {\r\n    \"arrowFunctions\": true,\r\n    \"blockBindings\": true,\r\n    \"experimentalObjectRestSpread\": true,\r\n    \"generators\": true,\r\n    \"jsx\": true,\r\n    \"module\": true,\r\n    \"modules\": true,\r\n    \"restParams\": true,\r\n    \"spread\": true\r\n  }\r\n}\r\n```\r\n\r\nTurns out the issues is with `escope` if I install 3.2.0 all works as expected or I guess more accurately as before\r\n\r\n<img width=\"1067\" alt=\"screen shot 2015-11-19 at 4 16 18 pm\" src=\"https://cloud.githubusercontent.com/assets/4656726/11284655/077b4426-8ed9-11e5-934d-3bd2b11c8335.png\">\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28418634-update-in-escope-3-2-1-breaking-es6-spreads?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/158261395","html_url":"https://github.com/eslint/eslint/issues/4481#issuecomment-158261395","issue_url":"https://api.github.com/repos/eslint/eslint/issues/4481","id":158261395,"user":{"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},"created_at":"2015-11-20T02:30:49Z","updated_at":"2015-11-20T02:30:49Z","body":"I could not reproduce this with:\r\n\r\n```js\r\n{\r\n  // \"parser\": \"babel-eslint\", # this is used in the second item.\r\n  \"env\": {\r\n    \"es6\": true\r\n  },\r\n  \"ecmaFeatures\": {\r\n    \"experimentalObjectRestSpread\": true\r\n  },\r\n  \"rules\": {\r\n    \"no-undef\": 2,\r\n    \"no-unused-vars\": 2,\r\n    \"no-redeclare\": 2\r\n  }\r\n}\r\n```\r\n\r\n```js\r\nconst {makeGetters, makeActions, Getters, ...store} = loginData;\r\nconst reactor = registerStores(store);\r\n```\r\n\r\n## `eslint@1.9.0` and `escope@3.2.1`\r\n\r\n```\r\n> eslint test.js\r\n\r\nC:\\Users\\t-nagashima.AD\\Documents\\GitHub\\sand\\test.js\r\n  1:8   error  \"makeGetters\" is defined but never used  no-unused-vars\r\n  1:21  error  \"makeActions\" is defined but never used  no-unused-vars\r\n  1:34  error  \"Getters\" is defined but never used      no-unused-vars\r\n  1:55  error  \"loginData\" is not defined               no-undef\r\n  2:7   error  \"reactor\" is defined but never used      no-unused-vars\r\n  2:17  error  \"registerStores\" is not defined          no-undef\r\n```\r\n\r\nThis is as expected.\r\n\r\n## `eslint@1.9.0`, `escope@3.2.1`, and `babel-eslint@4.1.5`\r\n\r\n```\r\n> eslint test.js\r\n\r\nC:\\Users\\t-nagashima.AD\\Documents\\GitHub\\sand\\test.js\r\n  1:55  error  \"loginData\" is not defined           no-undef\r\n  2:7   error  \"reactor\" is defined but never used  no-unused-vars\r\n  2:17  error  \"registerStores\" is not defined      no-undef\r\n```\r\n\r\nThis is not as expected, but `no-redeclare` is not appeared."}}