{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/2399","labels_url":"https://api.github.com/repos/eslint/eslint/issues/2399/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/2399/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/2399/events","html_url":"https://github.com/eslint/eslint/pull/2399","id":71393584,"number":2399,"title":"New: no-unneeded-ternary rule rule to disallow boolean literals in conditi...","user":{"login":"gyandeeps","id":5554486,"avatar_url":"https://avatars.githubusercontent.com/u/5554486?v=3","gravatar_id":"","url":"https://api.github.com/users/gyandeeps","html_url":"https://github.com/gyandeeps","followers_url":"https://api.github.com/users/gyandeeps/followers","following_url":"https://api.github.com/users/gyandeeps/following{/other_user}","gists_url":"https://api.github.com/users/gyandeeps/gists{/gist_id}","starred_url":"https://api.github.com/users/gyandeeps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyandeeps/subscriptions","organizations_url":"https://api.github.com/users/gyandeeps/orgs","repos_url":"https://api.github.com/users/gyandeeps/repos","events_url":"https://api.github.com/users/gyandeeps/events{/privacy}","received_events_url":"https://api.github.com/users/gyandeeps/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-04-27T20:30:59Z","updated_at":"2015-05-25T19:27:25Z","closed_at":"2015-05-01T18:25:14Z","pull_request":{"url":"https://api.github.com/repos/eslint/eslint/pulls/2399","html_url":"https://github.com/eslint/eslint/pull/2399","diff_url":"https://github.com/eslint/eslint/pull/2399.diff","patch_url":"https://github.com/eslint/eslint/pull/2399.patch"},"body":"...onal expressions (fixes #2391)\r\n\r\n**Questions:**\r\n* Should be ON/OFF by default?\r\n* Any scenarios which I have missed in testing?\r\n* Final name?\r\n\r\nCC: @michaelficarra @nzakas @ilyavolodin \r\n"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/105293363","html_url":"https://github.com/eslint/eslint/pull/2399#issuecomment-105293363","issue_url":"https://api.github.com/repos/eslint/eslint/issues/2399","id":105293363,"user":{"login":"mathieumg","id":1624812,"avatar_url":"https://avatars.githubusercontent.com/u/1624812?v=3","gravatar_id":"","url":"https://api.github.com/users/mathieumg","html_url":"https://github.com/mathieumg","followers_url":"https://api.github.com/users/mathieumg/followers","following_url":"https://api.github.com/users/mathieumg/following{/other_user}","gists_url":"https://api.github.com/users/mathieumg/gists{/gist_id}","starred_url":"https://api.github.com/users/mathieumg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathieumg/subscriptions","organizations_url":"https://api.github.com/users/mathieumg/orgs","repos_url":"https://api.github.com/users/mathieumg/repos","events_url":"https://api.github.com/users/mathieumg/events{/privacy}","received_events_url":"https://api.github.com/users/mathieumg/received_events","type":"User","site_admin":false},"created_at":"2015-05-25T19:27:25Z","updated_at":"2015-05-25T19:27:25Z","body":"Wouldn't `!!(window.document && document.body)` be acceptable as a replacement in that case?"}}