{"action":"created","issue":{"url":"https://api.github.com/repos/jshint/jshint/issues/2323","labels_url":"https://api.github.com/repos/jshint/jshint/issues/2323/labels{/name}","comments_url":"https://api.github.com/repos/jshint/jshint/issues/2323/comments","events_url":"https://api.github.com/repos/jshint/jshint/issues/2323/events","html_url":"https://github.com/jshint/jshint/issues/2323","id":69545854,"number":2323,"title":"feature request: ban var statement (must use let / const)","user":{"login":"lukeapage","id":309321,"avatar_url":"https://avatars.githubusercontent.com/u/309321?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeapage","html_url":"https://github.com/lukeapage","followers_url":"https://api.github.com/users/lukeapage/followers","following_url":"https://api.github.com/users/lukeapage/following{/other_user}","gists_url":"https://api.github.com/users/lukeapage/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeapage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeapage/subscriptions","organizations_url":"https://api.github.com/users/lukeapage/orgs","repos_url":"https://api.github.com/users/lukeapage/repos","events_url":"https://api.github.com/users/lukeapage/events{/privacy}","received_events_url":"https://api.github.com/users/lukeapage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-20T09:26:52Z","updated_at":"2015-04-20T15:09:45Z","closed_at":null,"body":"Similiar but very different to #2295 .\r\n\r\nAfter using es6 for some time it creates clearer code if all variable definitions are `let` or `const`. Combining `var` and `let` in one function means the developer must think even harder to understand the function than they did when there was just `var`.\r\n\r\nSo, I would like to enforce no new code gets written using `var`.\r\n\r\nDoes this sound like a good idea for a jshint flag? or is this a style concern that should be taken up with jscs?"},"comment":{"url":"https://api.github.com/repos/jshint/jshint/issues/comments/94479064","html_url":"https://github.com/jshint/jshint/issues/2323#issuecomment-94479064","issue_url":"https://api.github.com/repos/jshint/jshint/issues/2323","id":94479064,"user":{"login":"jugglinmike","id":677252,"avatar_url":"https://avatars.githubusercontent.com/u/677252?v=3","gravatar_id":"","url":"https://api.github.com/users/jugglinmike","html_url":"https://github.com/jugglinmike","followers_url":"https://api.github.com/users/jugglinmike/followers","following_url":"https://api.github.com/users/jugglinmike/following{/other_user}","gists_url":"https://api.github.com/users/jugglinmike/gists{/gist_id}","starred_url":"https://api.github.com/users/jugglinmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jugglinmike/subscriptions","organizations_url":"https://api.github.com/users/jugglinmike/orgs","repos_url":"https://api.github.com/users/jugglinmike/repos","events_url":"https://api.github.com/users/jugglinmike/events{/privacy}","received_events_url":"https://api.github.com/users/jugglinmike/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T15:09:45Z","updated_at":"2015-04-20T15:09:45Z","body":"[JSHint now implements a `varstmt` option for this purpose.](https://github.com/jshint/jshint/pull/2234) It's a little confusing to use (set it to `true` to *disallow* `var` statements), but it should do the trick!"}}