{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/tslint/issues/922","labels_url":"https://api.github.com/repos/palantir/tslint/issues/922/labels{/name}","comments_url":"https://api.github.com/repos/palantir/tslint/issues/922/comments","events_url":"https://api.github.com/repos/palantir/tslint/issues/922/events","html_url":"https://github.com/palantir/tslint/issues/922","id":127332487,"number":922,"title":"New rule to forbid access to commonly-confused ambient globals","user":{"login":"adidahiya","id":723999,"avatar_url":"https://avatars.githubusercontent.com/u/723999?v=3","gravatar_id":"","url":"https://api.github.com/users/adidahiya","html_url":"https://github.com/adidahiya","followers_url":"https://api.github.com/users/adidahiya/followers","following_url":"https://api.github.com/users/adidahiya/following{/other_user}","gists_url":"https://api.github.com/users/adidahiya/gists{/gist_id}","starred_url":"https://api.github.com/users/adidahiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adidahiya/subscriptions","organizations_url":"https://api.github.com/users/adidahiya/orgs","repos_url":"https://api.github.com/users/adidahiya/repos","events_url":"https://api.github.com/users/adidahiya/events{/privacy}","received_events_url":"https://api.github.com/users/adidahiya/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/palantir/tslint/labels/P2","name":"P2","color":"bbbbbb"},{"url":"https://api.github.com/repos/palantir/tslint/labels/Status:%20Accepting%20PRs","name":"Status: Accepting PRs","color":"0052cc"},{"url":"https://api.github.com/repos/palantir/tslint/labels/Status:%20Needs%20Proposal","name":"Status: Needs Proposal","color":"fad8c7"},{"url":"https://api.github.com/repos/palantir/tslint/labels/Type:%20Rule%20Suggestion","name":"Type: Rule Suggestion","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-18T23:42:25Z","updated_at":"2016-01-21T14:15:52Z","closed_at":null,"body":"For example, `window.event` ([here](https://github.com/Microsoft/TypeScript/blob/31bbac3c11c82af6cb93fd26ccf1632da6a04353/src/lib/dom.generated.d.ts#L12686) in lib.d.ts) is often referenced in erroneous code like this:\r\n\r\n```ts\r\nfunction broken(evt: Event) {\r\n    // Meant to do something with `evt` but typed it incorrectly.\r\n    Event.target;  // compiler error\r\n    event.target;  // should be a lint failure\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/palantir/tslint/issues/comments/173581169","html_url":"https://github.com/palantir/tslint/issues/922#issuecomment-173581169","issue_url":"https://api.github.com/repos/palantir/tslint/issues/922","id":173581169,"user":{"login":"adidahiya","id":723999,"avatar_url":"https://avatars.githubusercontent.com/u/723999?v=3","gravatar_id":"","url":"https://api.github.com/users/adidahiya","html_url":"https://github.com/adidahiya","followers_url":"https://api.github.com/users/adidahiya/followers","following_url":"https://api.github.com/users/adidahiya/following{/other_user}","gists_url":"https://api.github.com/users/adidahiya/gists{/gist_id}","starred_url":"https://api.github.com/users/adidahiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adidahiya/subscriptions","organizations_url":"https://api.github.com/users/adidahiya/orgs","repos_url":"https://api.github.com/users/adidahiya/repos","events_url":"https://api.github.com/users/adidahiya/events{/privacy}","received_events_url":"https://api.github.com/users/adidahiya/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T14:15:52Z","updated_at":"2016-01-21T14:15:52Z","body":"@myitcv Is such an approach feasible without [lib.d.ts modularity](https://github.com/Microsoft/TypeScript/issues/494) in TS 2.0?\r\n\r\nThis issue is fairly similar to #327. Both would almost certainly involve using the type checker (but not necessarily #680 because we could just tell langauge services to consider `lib.d.ts` and the type checker will pick up those global types)."}}