{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/4411","labels_url":"https://api.github.com/repos/eslint/eslint/issues/4411/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/4411/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/4411/events","html_url":"https://github.com/eslint/eslint/issues/4411","id":116724163,"number":4411,"title":"False positive for `arrow-body-style` rule when used as a noop","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-13T08:36:14Z","updated_at":"2015-11-13T16:49:51Z","closed_at":null,"body":"```\r\n~/dev\r\n❯ eslint --version                                                                            \r\nv1.9.0\r\n                                                                                                                                               \r\n~/dev\r\n❯ echo 'stream.on('error', () => {});' | eslint --stdin --env=es6 --rule='arrow-body-style: [2, \"as-needed\"]'\r\n\r\n<text>\r\n  1:24  error  Unexpected empty block in arrow body  arrow-body-style\r\n\r\n✖ 1 problem (1 error, 0 warnings)\r\n```\r\n\r\nSometimes you have to pass a noop function. In this example the braces are required, but ESLint still complains, even though the setting is `as-needed`.\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28214191-false-positive-for-arrow-body-style-rule-when-used-as-a-noop?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/156485032","html_url":"https://github.com/eslint/eslint/issues/4411#issuecomment-156485032","issue_url":"https://api.github.com/repos/eslint/eslint/issues/4411","id":156485032,"user":{"login":"nzakas","id":38546,"avatar_url":"https://avatars.githubusercontent.com/u/38546?v=3","gravatar_id":"","url":"https://api.github.com/users/nzakas","html_url":"https://github.com/nzakas","followers_url":"https://api.github.com/users/nzakas/followers","following_url":"https://api.github.com/users/nzakas/following{/other_user}","gists_url":"https://api.github.com/users/nzakas/gists{/gist_id}","starred_url":"https://api.github.com/users/nzakas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzakas/subscriptions","organizations_url":"https://api.github.com/users/nzakas/orgs","repos_url":"https://api.github.com/users/nzakas/repos","events_url":"https://api.github.com/users/nzakas/events{/privacy}","received_events_url":"https://api.github.com/users/nzakas/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T16:49:51Z","updated_at":"2015-11-13T16:49:51Z","body":"Yeah, I'm not sure why this check in this rule, either. The rule is about style, I think we should remove that extra check."}}