{"action":"opened","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/7220","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/7220/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/7220/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/7220/events","html_url":"https://github.com/eslint/eslint/issues/7220","id":178890501,"number":7220,"title":"no-unused-vars should ignore necessary variables in eslint comprehensions","user":{"login":"gfarrell","id":314331,"avatar_url":"https://avatars.githubusercontent.com/u/314331?v=3","gravatar_id":"","url":"https://api.github.com/users/gfarrell","html_url":"https://github.com/gfarrell","followers_url":"https://api.github.com/users/gfarrell/followers","following_url":"https://api.github.com/users/gfarrell/following{/other_user}","gists_url":"https://api.github.com/users/gfarrell/gists{/gist_id}","starred_url":"https://api.github.com/users/gfarrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfarrell/subscriptions","organizations_url":"https://api.github.com/users/gfarrell/orgs","repos_url":"https://api.github.com/users/gfarrell/repos","events_url":"https://api.github.com/users/gfarrell/events{/privacy}","received_events_url":"https://api.github.com/users/gfarrell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-23T14:21:46Z","updated_at":"2016-09-23T14:21:46Z","closed_at":null,"body":"<!--\r\nThis template is for bug reports. If you are reporting a bug, please continue on. If you are here for another reason, please see below:\r\n\r\n1. To propose a new rule: http://eslint.org/docs/developer-guide/contributing/new-rules\r\n2. To request a change: http://eslint.org/docs/developer-guide/contributing/changes\r\n3. If you have any questions, please stop by our chatroom: https://gitter.im/eslint/eslint\r\n\r\nNote that leaving sections blank will make it difficult for us to troubleshoot and we may have to close the issue.\r\n-->\r\n\r\n**Tell us about your environment**\r\n\r\n* **ESLint Version:** v3.5.0\r\n* **Node Version:** v6.2.1\r\n* **npm Version:** 3.9.3\r\n\r\n**What parser (default, Babel-ESLint, etc.) are you using?**\r\ndefault\r\n\r\n**Please show your full configuration:**\r\n```\r\n{\r\n    \"extends\": \"eslint:recommended\",\r\n    \"env\": {\r\n        \"node\": true,\r\n        \"es6\": true\r\n    },\r\n    \"rules\": {\r\n        \"no-multi-spaces\": 0,\r\n        \"no-underscore-dangle\": 0,\r\n        \"no-mixed-spaces-and-tabs\": 2,\r\n        \"block-scoped-var\": 2,\r\n        \"no-inner-declarations\": 2,\r\n        \"valid-jsdoc\": 1,\r\n        \"no-irregular-whitespace\": 2,\r\n        \"spaced-comment\": [1, \"always\"],\r\n        \"no-unused-vars\": 2,\r\n        \"no-undef\": 2,\r\n        \"comma-dangle\": [2, \"always-multiline\"],\r\n        \"no-console\": 0,\r\n        \"no-debugger\": 2,\r\n        \"no-dupe-args\": 2,\r\n        \"no-dupe-keys\": 2,\r\n        \"eqeqeq\": 2,\r\n        \"no-useless-call\": 1,\r\n        \"strict\": [2, \"global\"],\r\n        \"max-len\": [2, { \"code\": 100, \"ignoreUrls\": true }],\r\n        \"semi\": 2,\r\n        \"eol-last\": 2,\r\n        \"quotes\": [2, \"double\"]\r\n    },\r\n    \"parserOptions\": {\r\n        \"ecmaVersion\": 6,\r\n        \"ecmaFeatures\": {\r\n            \"globalReturn\": true\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n**What did you do? Please include the actual source code causing the issue.**\r\n```javascript\r\n// ...\r\n.map(([ _, callback ]) => callback)\r\n// ...\r\n\r\n**What did you expect to happen?**\r\neslint to recognise that the first variable (`_`) is necessary in order to get the second, used variable.\r\n\r\n**What actually happened? Please include the actual, raw output from ESLint.**\r\n`26:13  error  '_' is defined but never used          no-unused-vars`\r\n"}}
{"actor":{"display_login":"gfarrell"}}