{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/3833","labels_url":"https://api.github.com/repos/eslint/eslint/issues/3833/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/3833/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/3833/events","html_url":"https://github.com/eslint/eslint/issues/3833","id":106957088,"number":3833,"title":"exported comment does not work in env:node","user":{"login":"kotodamagic","id":5744257,"avatar_url":"https://avatars.githubusercontent.com/u/5744257?v=3","gravatar_id":"","url":"https://api.github.com/users/kotodamagic","html_url":"https://github.com/kotodamagic","followers_url":"https://api.github.com/users/kotodamagic/followers","following_url":"https://api.github.com/users/kotodamagic/following{/other_user}","gists_url":"https://api.github.com/users/kotodamagic/gists{/gist_id}","starred_url":"https://api.github.com/users/kotodamagic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotodamagic/subscriptions","organizations_url":"https://api.github.com/users/kotodamagic/orgs","repos_url":"https://api.github.com/users/kotodamagic/repos","events_url":"https://api.github.com/users/kotodamagic/events{/privacy}","received_events_url":"https://api.github.com/users/kotodamagic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/eslint/eslint/labels/core","name":"core","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-17T10:38:23Z","updated_at":"2015-09-17T13:06:54Z","closed_at":null,"body":"## Environment\r\n\r\n* Same error is displayed in:\r\n    * node.js@4.0.0 and eslint@1.4.3\r\n    * node.js@4.0.0 and eslint@1.2.0\r\n    * node.js@4.0.0 and eslint@1.4.1\r\n    * node.js@0.12.7 and eslint@1.4.1\r\n\r\n## Minimal code to reproduce\r\n\r\n.eslintrc:\r\n\r\n```json\r\n{\r\n  \"root\":true,\r\n  \"rules\": { \"no-unused-vars\": 2 },\r\n  \"env\": { \"node\": true }\r\n}\r\n```\r\n\r\ncode:\r\n\r\n```javascript\r\n/* exported thisIsExported */\r\nvar thisIsExported = 0;\r\n```\r\n\r\nresult:\r\n\r\n```\r\n$ eslint no-unused.js\r\n\r\n/home/koto/tmp/ruletest/no-unused.js\r\n  2:5  error  \"thisIsExported\" is defined but never used  no-unused-vars\r\n\r\n✖ 1 problem (1 error, 0 warnings)\r\n```\r\n\r\n## Issue\r\n\r\n* If .eslintrc doesn't contain `\"env\": { \"node\": true }`, no errors are displayed."},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/141076890","html_url":"https://github.com/eslint/eslint/issues/3833#issuecomment-141076890","issue_url":"https://api.github.com/repos/eslint/eslint/issues/3833","id":141076890,"user":{"login":"IanVS","id":4616705,"avatar_url":"https://avatars.githubusercontent.com/u/4616705?v=3","gravatar_id":"","url":"https://api.github.com/users/IanVS","html_url":"https://github.com/IanVS","followers_url":"https://api.github.com/users/IanVS/followers","following_url":"https://api.github.com/users/IanVS/following{/other_user}","gists_url":"https://api.github.com/users/IanVS/gists{/gist_id}","starred_url":"https://api.github.com/users/IanVS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IanVS/subscriptions","organizations_url":"https://api.github.com/users/IanVS/orgs","repos_url":"https://api.github.com/users/IanVS/repos","events_url":"https://api.github.com/users/IanVS/events{/privacy}","received_events_url":"https://api.github.com/users/IanVS/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T13:06:54Z","updated_at":"2015-09-17T13:06:54Z","body":"In node, variables are not added to the global scope, so `thisIsExported` would be only at the module scope.  Since it is not being used in the module, the error is correct."}}