{"action":"opened","number":1547,"pull_request":{"url":"https://api.github.com/repos/palantir/tslint/pulls/1547","id":84774870,"html_url":"https://github.com/palantir/tslint/pull/1547","diff_url":"https://github.com/palantir/tslint/pull/1547.diff","patch_url":"https://github.com/palantir/tslint/pull/1547.patch","issue_url":"https://api.github.com/repos/palantir/tslint/issues/1547","number":1547,"state":"open","locked":false,"title":"add auto-fix for no-var-keyword","user":{"login":"alexeagle","id":47395,"avatar_url":"https://avatars.githubusercontent.com/u/47395?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeagle","html_url":"https://github.com/alexeagle","followers_url":"https://api.github.com/users/alexeagle/followers","following_url":"https://api.github.com/users/alexeagle/following{/other_user}","gists_url":"https://api.github.com/users/alexeagle/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeagle/subscriptions","organizations_url":"https://api.github.com/users/alexeagle/orgs","repos_url":"https://api.github.com/users/alexeagle/repos","events_url":"https://api.github.com/users/alexeagle/events{/privacy}","received_events_url":"https://api.github.com/users/alexeagle/received_events","type":"User","site_admin":false},"body":"Note, we just replace with `let` which can cause errors if the identifier is referenced before the declaration or outside the scope. TypeScript will catch these at type-check time","created_at":"2016-09-11T02:39:17Z","updated_at":"2016-09-11T02:39:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/palantir/tslint/pulls/1547/commits","review_comments_url":"https://api.github.com/repos/palantir/tslint/pulls/1547/comments","review_comment_url":"https://api.github.com/repos/palantir/tslint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/palantir/tslint/issues/1547/comments","statuses_url":"https://api.github.com/repos/palantir/tslint/statuses/271c5c85cd9b79c43c5d61d504b39093f32f42b4","head":{"label":"alexeagle:no-var-keyword","ref":"no-var-keyword","sha":"271c5c85cd9b79c43c5d61d504b39093f32f42b4","user":{"login":"alexeagle","id":47395,"avatar_url":"https://avatars.githubusercontent.com/u/47395?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeagle","html_url":"https://github.com/alexeagle","followers_url":"https://api.github.com/users/alexeagle/followers","following_url":"https://api.github.com/users/alexeagle/following{/other_user}","gists_url":"https://api.github.com/users/alexeagle/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeagle/subscriptions","organizations_url":"https://api.github.com/users/alexeagle/orgs","repos_url":"https://api.github.com/users/alexeagle/repos","events_url":"https://api.github.com/users/alexeagle/events{/privacy}","received_events_url":"https://api.github.com/users/alexeagle/received_events","type":"User","site_admin":false},"repo":{"id":38075540,"name":"tslint","full_name":"alexeagle/tslint","owner":{"login":"alexeagle","id":47395,"avatar_url":"https://avatars.githubusercontent.com/u/47395?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeagle","html_url":"https://github.com/alexeagle","followers_url":"https://api.github.com/users/alexeagle/followers","following_url":"https://api.github.com/users/alexeagle/following{/other_user}","gists_url":"https://api.github.com/users/alexeagle/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeagle/subscriptions","organizations_url":"https://api.github.com/users/alexeagle/orgs","repos_url":"https://api.github.com/users/alexeagle/repos","events_url":"https://api.github.com/users/alexeagle/events{/privacy}","received_events_url":"https://api.github.com/users/alexeagle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexeagle/tslint","description":"A linter for the TypeScript language.","fork":true,"url":"https://api.github.com/repos/alexeagle/tslint","forks_url":"https://api.github.com/repos/alexeagle/tslint/forks","keys_url":"https://api.github.com/repos/alexeagle/tslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexeagle/tslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexeagle/tslint/teams","hooks_url":"https://api.github.com/repos/alexeagle/tslint/hooks","issue_events_url":"https://api.github.com/repos/alexeagle/tslint/issues/events{/number}","events_url":"https://api.github.com/repos/alexeagle/tslint/events","assignees_url":"https://api.github.com/repos/alexeagle/tslint/assignees{/user}","branches_url":"https://api.github.com/repos/alexeagle/tslint/branches{/branch}","tags_url":"https://api.github.com/repos/alexeagle/tslint/tags","blobs_url":"https://api.github.com/repos/alexeagle/tslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexeagle/tslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexeagle/tslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexeagle/tslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexeagle/tslint/statuses/{sha}","languages_url":"https://api.github.com/repos/alexeagle/tslint/languages","stargazers_url":"https://api.github.com/repos/alexeagle/tslint/stargazers","contributors_url":"https://api.github.com/repos/alexeagle/tslint/contributors","subscribers_url":"https://api.github.com/repos/alexeagle/tslint/subscribers","subscription_url":"https://api.github.com/repos/alexeagle/tslint/subscription","commits_url":"https://api.github.com/repos/alexeagle/tslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexeagle/tslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexeagle/tslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexeagle/tslint/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexeagle/tslint/contents/{+path}","compare_url":"https://api.github.com/repos/alexeagle/tslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexeagle/tslint/merges","archive_url":"https://api.github.com/repos/alexeagle/tslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexeagle/tslint/downloads","issues_url":"https://api.github.com/repos/alexeagle/tslint/issues{/number}","pulls_url":"https://api.github.com/repos/alexeagle/tslint/pulls{/number}","milestones_url":"https://api.github.com/repos/alexeagle/tslint/milestones{/number}","notifications_url":"https://api.github.com/repos/alexeagle/tslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexeagle/tslint/labels{/name}","releases_url":"https://api.github.com/repos/alexeagle/tslint/releases{/id}","deployments_url":"https://api.github.com/repos/alexeagle/tslint/deployments","created_at":"2015-06-25T21:36:13Z","updated_at":"2016-07-12T01:19:56Z","pushed_at":"2016-09-11T02:38:36Z","git_url":"git://github.com/alexeagle/tslint.git","ssh_url":"git@github.com:alexeagle/tslint.git","clone_url":"https://github.com/alexeagle/tslint.git","svn_url":"https://github.com/alexeagle/tslint","homepage":null,"size":9672,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"palantir:master","ref":"master","sha":"e9bedf98a0b61db7100c0f01c3239c655638ce4f","user":{"login":"palantir","id":303157,"avatar_url":"https://avatars.githubusercontent.com/u/303157?v=3","gravatar_id":"","url":"https://api.github.com/users/palantir","html_url":"https://github.com/palantir","followers_url":"https://api.github.com/users/palantir/followers","following_url":"https://api.github.com/users/palantir/following{/other_user}","gists_url":"https://api.github.com/users/palantir/gists{/gist_id}","starred_url":"https://api.github.com/users/palantir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palantir/subscriptions","organizations_url":"https://api.github.com/users/palantir/orgs","repos_url":"https://api.github.com/users/palantir/repos","events_url":"https://api.github.com/users/palantir/events{/privacy}","received_events_url":"https://api.github.com/users/palantir/received_events","type":"Organization","site_admin":false},"repo":{"id":11672345,"name":"tslint","full_name":"palantir/tslint","owner":{"login":"palantir","id":303157,"avatar_url":"https://avatars.githubusercontent.com/u/303157?v=3","gravatar_id":"","url":"https://api.github.com/users/palantir","html_url":"https://github.com/palantir","followers_url":"https://api.github.com/users/palantir/followers","following_url":"https://api.github.com/users/palantir/following{/other_user}","gists_url":"https://api.github.com/users/palantir/gists{/gist_id}","starred_url":"https://api.github.com/users/palantir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palantir/subscriptions","organizations_url":"https://api.github.com/users/palantir/orgs","repos_url":"https://api.github.com/users/palantir/repos","events_url":"https://api.github.com/users/palantir/events{/privacy}","received_events_url":"https://api.github.com/users/palantir/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/palantir/tslint","description":"An extensible linter for the TypeScript language.","fork":false,"url":"https://api.github.com/repos/palantir/tslint","forks_url":"https://api.github.com/repos/palantir/tslint/forks","keys_url":"https://api.github.com/repos/palantir/tslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/palantir/tslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/palantir/tslint/teams","hooks_url":"https://api.github.com/repos/palantir/tslint/hooks","issue_events_url":"https://api.github.com/repos/palantir/tslint/issues/events{/number}","events_url":"https://api.github.com/repos/palantir/tslint/events","assignees_url":"https://api.github.com/repos/palantir/tslint/assignees{/user}","branches_url":"https://api.github.com/repos/palantir/tslint/branches{/branch}","tags_url":"https://api.github.com/repos/palantir/tslint/tags","blobs_url":"https://api.github.com/repos/palantir/tslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/palantir/tslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/palantir/tslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/palantir/tslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/palantir/tslint/statuses/{sha}","languages_url":"https://api.github.com/repos/palantir/tslint/languages","stargazers_url":"https://api.github.com/repos/palantir/tslint/stargazers","contributors_url":"https://api.github.com/repos/palantir/tslint/contributors","subscribers_url":"https://api.github.com/repos/palantir/tslint/subscribers","subscription_url":"https://api.github.com/repos/palantir/tslint/subscription","commits_url":"https://api.github.com/repos/palantir/tslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/palantir/tslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/palantir/tslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/palantir/tslint/issues/comments{/number}","contents_url":"https://api.github.com/repos/palantir/tslint/contents/{+path}","compare_url":"https://api.github.com/repos/palantir/tslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/palantir/tslint/merges","archive_url":"https://api.github.com/repos/palantir/tslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/palantir/tslint/downloads","issues_url":"https://api.github.com/repos/palantir/tslint/issues{/number}","pulls_url":"https://api.github.com/repos/palantir/tslint/pulls{/number}","milestones_url":"https://api.github.com/repos/palantir/tslint/milestones{/number}","notifications_url":"https://api.github.com/repos/palantir/tslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/palantir/tslint/labels{/name}","releases_url":"https://api.github.com/repos/palantir/tslint/releases{/id}","deployments_url":"https://api.github.com/repos/palantir/tslint/deployments","created_at":"2013-07-25T22:19:18Z","updated_at":"2016-09-10T22:53:56Z","pushed_at":"2016-09-11T02:11:06Z","git_url":"git://github.com/palantir/tslint.git","ssh_url":"git@github.com:palantir/tslint.git","clone_url":"https://github.com/palantir/tslint.git","svn_url":"https://github.com/palantir/tslint","homepage":"http://palantir.github.io/tslint/","size":11910,"stargazers_count":1020,"watchers_count":1020,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":247,"mirror_url":null,"open_issues_count":252,"forks":247,"open_issues":252,"watchers":1020,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/palantir/tslint/pulls/1547"},"html":{"href":"https://github.com/palantir/tslint/pull/1547"},"issue":{"href":"https://api.github.com/repos/palantir/tslint/issues/1547"},"comments":{"href":"https://api.github.com/repos/palantir/tslint/issues/1547/comments"},"review_comments":{"href":"https://api.github.com/repos/palantir/tslint/pulls/1547/comments"},"review_comment":{"href":"https://api.github.com/repos/palantir/tslint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/palantir/tslint/pulls/1547/commits"},"statuses":{"href":"https://api.github.com/repos/palantir/tslint/statuses/271c5c85cd9b79c43c5d61d504b39093f32f42b4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":52,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"alexeagle"}}