{"action":"created","issue":{"url":"https://api.github.com/repos/finn-no/eslint-config-finn/issues/15","repository_url":"https://api.github.com/repos/finn-no/eslint-config-finn","labels_url":"https://api.github.com/repos/finn-no/eslint-config-finn/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/finn-no/eslint-config-finn/issues/15/comments","events_url":"https://api.github.com/repos/finn-no/eslint-config-finn/issues/15/events","html_url":"https://github.com/finn-no/eslint-config-finn/issues/15","id":160674743,"number":15,"title":"no-confusing-arrow","user":{"login":"gregersrygg","id":149725,"avatar_url":"https://avatars.githubusercontent.com/u/149725?v=3","gravatar_id":"","url":"https://api.github.com/users/gregersrygg","html_url":"https://github.com/gregersrygg","followers_url":"https://api.github.com/users/gregersrygg/followers","following_url":"https://api.github.com/users/gregersrygg/following{/other_user}","gists_url":"https://api.github.com/users/gregersrygg/gists{/gist_id}","starred_url":"https://api.github.com/users/gregersrygg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregersrygg/subscriptions","organizations_url":"https://api.github.com/users/gregersrygg/orgs","repos_url":"https://api.github.com/users/gregersrygg/repos","events_url":"https://api.github.com/users/gregersrygg/events{/privacy}","received_events_url":"https://api.github.com/users/gregersrygg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-16T14:24:49Z","updated_at":"2016-06-17T09:16:25Z","closed_at":null,"body":"Disallow arrow functions where they could be confused with comparisons\r\nhttp://eslint.org/docs/rules/no-confusing-arrow\r\n\r\nOptionally we can allow parens:\r\n```js\r\nvar x = (a) => (1 ? 2 : 3);\r\n```"},"comment":{"url":"https://api.github.com/repos/finn-no/eslint-config-finn/issues/comments/226721196","html_url":"https://github.com/finn-no/eslint-config-finn/issues/15#issuecomment-226721196","issue_url":"https://api.github.com/repos/finn-no/eslint-config-finn/issues/15","id":226721196,"user":{"login":"sveisvei","id":121438,"avatar_url":"https://avatars.githubusercontent.com/u/121438?v=3","gravatar_id":"","url":"https://api.github.com/users/sveisvei","html_url":"https://github.com/sveisvei","followers_url":"https://api.github.com/users/sveisvei/followers","following_url":"https://api.github.com/users/sveisvei/following{/other_user}","gists_url":"https://api.github.com/users/sveisvei/gists{/gist_id}","starred_url":"https://api.github.com/users/sveisvei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sveisvei/subscriptions","organizations_url":"https://api.github.com/users/sveisvei/orgs","repos_url":"https://api.github.com/users/sveisvei/repos","events_url":"https://api.github.com/users/sveisvei/events{/privacy}","received_events_url":"https://api.github.com/users/sveisvei/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T09:16:25Z","updated_at":"2016-06-17T09:16:25Z","body":"3) Written with return:\r\n```javascript\r\nconst fn = (param) => {\r\n    return (\r\n        param && param.prop && param.prop === 'val' ? param.prop  : 'val2'\r\n    );\r\n};\r\n\r\nconst fn2 = (param) => {\r\n    return (\r\n        param && param.prop && param.prop === 'val' ? param.prop : param && param.prop3 ? param.prop3 :  'val2'\r\n    );\r\n};\r\n```"}}
{"actor":{"display_login":"sveisvei"}}