{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/3966","labels_url":"https://api.github.com/repos/eslint/eslint/issues/3966/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/3966/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/3966/events","html_url":"https://github.com/eslint/eslint/issues/3966","id":108692023,"number":3966,"title":"Add a no-global-event rule to prevent the use of the magic global event variable in browsers","user":{"login":"kileras","id":881852,"avatar_url":"https://avatars.githubusercontent.com/u/881852?v=3","gravatar_id":"","url":"https://api.github.com/users/kileras","html_url":"https://github.com/kileras","followers_url":"https://api.github.com/users/kileras/followers","following_url":"https://api.github.com/users/kileras/following{/other_user}","gists_url":"https://api.github.com/users/kileras/gists{/gist_id}","starred_url":"https://api.github.com/users/kileras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kileras/subscriptions","organizations_url":"https://api.github.com/users/kileras/orgs","repos_url":"https://api.github.com/users/kileras/repos","events_url":"https://api.github.com/users/kileras/events{/privacy}","received_events_url":"https://api.github.com/users/kileras/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/eslint/eslint/labels/triage","name":"triage","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-28T16:09:08Z","updated_at":"2015-09-28T16:20:37Z","closed_at":null,"body":"So following my comments in https://github.com/eslint/eslint/issues/3964, I think that adding a rule to prevent the use of the global event variable will be useful and potentially avoid some issues like the one described with react due to the magic of the global event variable.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27005725-add-a-no-global-event-rule-to-prevent-the-use-of-the-magic-global-event-variable-in-browsers?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F282608&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/143795256","html_url":"https://github.com/eslint/eslint/issues/3966#issuecomment-143795256","issue_url":"https://api.github.com/repos/eslint/eslint/issues/3966","id":143795256,"user":{"login":"michaelficarra","id":218840,"avatar_url":"https://avatars.githubusercontent.com/u/218840?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelficarra","html_url":"https://github.com/michaelficarra","followers_url":"https://api.github.com/users/michaelficarra/followers","following_url":"https://api.github.com/users/michaelficarra/following{/other_user}","gists_url":"https://api.github.com/users/michaelficarra/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelficarra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelficarra/subscriptions","organizations_url":"https://api.github.com/users/michaelficarra/orgs","repos_url":"https://api.github.com/users/michaelficarra/repos","events_url":"https://api.github.com/users/michaelficarra/events{/privacy}","received_events_url":"https://api.github.com/users/michaelficarra/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T16:20:37Z","updated_at":"2015-09-28T16:20:37Z","body":"There's probably a number of historic globals that can be avoided entirely."}}