{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/2684","labels_url":"https://api.github.com/repos/eslint/eslint/issues/2684/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/2684/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/2684/events","html_url":"https://github.com/eslint/eslint/issues/2684","id":84891697,"number":2684,"title":"no-unused-expressions rule should allow `foo && foo()`","user":{"login":"KevinGrandon","id":122602,"avatar_url":"https://avatars.githubusercontent.com/u/122602?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinGrandon","html_url":"https://github.com/KevinGrandon","followers_url":"https://api.github.com/users/KevinGrandon/followers","following_url":"https://api.github.com/users/KevinGrandon/following{/other_user}","gists_url":"https://api.github.com/users/KevinGrandon/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinGrandon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinGrandon/subscriptions","organizations_url":"https://api.github.com/users/KevinGrandon/orgs","repos_url":"https://api.github.com/users/KevinGrandon/repos","events_url":"https://api.github.com/users/KevinGrandon/events{/privacy}","received_events_url":"https://api.github.com/users/KevinGrandon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-04T03:42:29Z","updated_at":"2015-06-04T03:44:59Z","closed_at":null,"body":"From the rule docs, `This rule aims to eliminate unused expressions. The value of an expression should always be used, except in the case of expressions that side effect: function calls, assignments, and the new operator.`.\r\n\r\nI believe the syntax ``foo && foo()` should be considered valid here as it's a function call with potential side effects. This syntax allows for quite clean truthfulness checks inside code, and it would be nice if I could use this syntax with the rest of the rules inside no-unused-expressions. (If not, please let me opt out of just this one use-case)"},"comment":{"url":"https://api.github.com/repos/eslint/eslint/issues/comments/108708166","html_url":"https://github.com/eslint/eslint/issues/2684#issuecomment-108708166","issue_url":"https://api.github.com/repos/eslint/eslint/issues/2684","id":108708166,"user":{"login":"KevinGrandon","id":122602,"avatar_url":"https://avatars.githubusercontent.com/u/122602?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinGrandon","html_url":"https://github.com/KevinGrandon","followers_url":"https://api.github.com/users/KevinGrandon/followers","following_url":"https://api.github.com/users/KevinGrandon/following{/other_user}","gists_url":"https://api.github.com/users/KevinGrandon/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinGrandon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinGrandon/subscriptions","organizations_url":"https://api.github.com/users/KevinGrandon/orgs","repos_url":"https://api.github.com/users/KevinGrandon/repos","events_url":"https://api.github.com/users/KevinGrandon/events{/privacy}","received_events_url":"https://api.github.com/users/KevinGrandon/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T03:44:59Z","updated_at":"2015-06-04T03:44:59Z","body":"Added here: https://github.com/eslint/eslint/commit/6a4059392cb2d1018e57c6d7debfc319ecd4f3c2"}}