{"action":"created","issue":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/2152","repository_url":"https://api.github.com/repos/jscs-dev/node-jscs","labels_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/2152/labels{/name}","comments_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/2152/comments","events_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/2152/events","html_url":"https://github.com/jscs-dev/node-jscs/pull/2152","id":137679078,"number":2152,"title":"airbnb preset - rule #8.2 - omit the braces","user":{"login":"iilei","id":922226,"avatar_url":"https://avatars.githubusercontent.com/u/922226?v=3","gravatar_id":"","url":"https://api.github.com/users/iilei","html_url":"https://github.com/iilei","followers_url":"https://api.github.com/users/iilei/followers","following_url":"https://api.github.com/users/iilei/following{/other_user}","gists_url":"https://api.github.com/users/iilei/gists{/gist_id}","starred_url":"https://api.github.com/users/iilei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iilei/subscriptions","organizations_url":"https://api.github.com/users/iilei/orgs","repos_url":"https://api.github.com/users/iilei/repos","events_url":"https://api.github.com/users/iilei/events{/privacy}","received_events_url":"https://api.github.com/users/iilei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-01T20:34:16Z","updated_at":"2016-03-02T19:13:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/2152","html_url":"https://github.com/jscs-dev/node-jscs/pull/2152","diff_url":"https://github.com/jscs-dev/node-jscs/pull/2152.diff","patch_url":"https://github.com/jscs-dev/node-jscs/pull/2152.patch"},"body":"> If the function body consists of a single expression, omit the braces and use the implicit return. Otherwise, keep the braces and use a return statement.\r\n\r\n[See rule #8.2](https://github.com/airbnb/javascript#8.2)"},"comment":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/comments/191379465","html_url":"https://github.com/jscs-dev/node-jscs/pull/2152#issuecomment-191379465","issue_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/2152","id":191379465,"user":{"login":"markelog","id":945528,"avatar_url":"https://avatars.githubusercontent.com/u/945528?v=3","gravatar_id":"","url":"https://api.github.com/users/markelog","html_url":"https://github.com/markelog","followers_url":"https://api.github.com/users/markelog/followers","following_url":"https://api.github.com/users/markelog/following{/other_user}","gists_url":"https://api.github.com/users/markelog/gists{/gist_id}","starred_url":"https://api.github.com/users/markelog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markelog/subscriptions","organizations_url":"https://api.github.com/users/markelog/orgs","repos_url":"https://api.github.com/users/markelog/repos","events_url":"https://api.github.com/users/markelog/events{/privacy}","received_events_url":"https://api.github.com/users/markelog/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T19:13:16Z","updated_at":"2016-03-02T19:13:16Z","body":"`requireShorthandArrowFunctions` is good but `disallowParenthesesAroundArrowParam ` isn't, since that rule is strict, whereas this -\r\n```js\r\n[1, 2, 3].map((number) => {\r\n  const nextNumber = number + 1;\r\n  return `A string containing the ${nextNumber}.`;\r\n});\r\n```\r\nis allowed.\r\n/cc @hzoo \r\n\r\nThank you!"}}