{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/1969","labels_url":"https://api.github.com/repos/eslint/eslint/issues/1969/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/1969/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/1969/events","html_url":"https://github.com/eslint/eslint/issues/1969","id":60237750,"number":1969,"title":"block-scoped-var behavior in 0.16.0 is different from 0.15.0","user":{"login":"shinnn","id":1131567,"avatar_url":"https://avatars.githubusercontent.com/u/1131567?v=3","gravatar_id":"","url":"https://api.github.com/users/shinnn","html_url":"https://github.com/shinnn","followers_url":"https://api.github.com/users/shinnn/followers","following_url":"https://api.github.com/users/shinnn/following{/other_user}","gists_url":"https://api.github.com/users/shinnn/gists{/gist_id}","starred_url":"https://api.github.com/users/shinnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinnn/subscriptions","organizations_url":"https://api.github.com/users/shinnn/orgs","repos_url":"https://api.github.com/users/shinnn/repos","events_url":"https://api.github.com/users/shinnn/events{/privacy}","received_events_url":"https://api.github.com/users/shinnn/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":null,"milestone":null,"comments":7,"created_at":"2015-03-08T02:44:21Z","updated_at":"2015-04-10T15:52:08Z","closed_at":"2015-03-08T17:18:20Z","body":"For example, when I lint `file.js` like this,\r\n\r\n```js\r\n\"use strict\";\r\n\r\nvar v = 1;\r\n\r\nmodule.exports = function() {\r\n  return v;\r\n};\r\n```\r\n\r\nWith eslint 0.15.1,\r\n\r\n```sh\r\n$ eslint file.js --env=node --rule=block-scoped-var:2\r\n```\r\n\r\nIt shows no errors.\r\n\r\nBut, with eslint 0.16.0,\r\n\r\n```sh\r\n$ eslint file.js --env=node --rule=block-scoped-var:2\r\n\r\nfile.js\r\n  6:9  error  \"v\" used outside of binding context  block-scoped-var\r\n```\r\n\r\nit shows an error.\r\n\r\nI think the previous behavior of `block-scoped-var` rule is valid for `node` environement.\r\n"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/91598786","html_url":"https://github.com/eslint/eslint/issues/1969#issuecomment-91598786","issue_url":"https://api.github.com/repos/eslint/eslint/issues/1969","id":91598786,"user":{"login":"nzakas","id":38546,"avatar_url":"https://avatars.githubusercontent.com/u/38546?v=3","gravatar_id":"","url":"https://api.github.com/users/nzakas","html_url":"https://github.com/nzakas","followers_url":"https://api.github.com/users/nzakas/followers","following_url":"https://api.github.com/users/nzakas/following{/other_user}","gists_url":"https://api.github.com/users/nzakas/gists{/gist_id}","starred_url":"https://api.github.com/users/nzakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzakas/subscriptions","organizations_url":"https://api.github.com/users/nzakas/orgs","repos_url":"https://api.github.com/users/nzakas/repos","events_url":"https://api.github.com/users/nzakas/events{/privacy}","received_events_url":"https://api.github.com/users/nzakas/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T15:52:08Z","updated_at":"2015-04-10T15:52:08Z","body":"Please file a new issue and include repro steps."}}