{"action":"opened","issue":{"url":"https://api.github.com/repos/eslint/eslint/issues/10548","repository_url":"https://api.github.com/repos/eslint/eslint","labels_url":"https://api.github.com/repos/eslint/eslint/issues/10548/labels{/name}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/10548/comments","events_url":"https://api.github.com/repos/eslint/eslint/issues/10548/events","html_url":"https://github.com/eslint/eslint/issues/10548","id":337211629,"node_id":"MDU6SXNzdWUzMzcyMTE2Mjk=","number":10548,"title":"arrow-body-style: prefer body brackets `(` ","user":{"login":"peter-mouland","id":1727939,"node_id":"MDQ6VXNlcjE3Mjc5Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/1727939?v=4","gravatar_id":"","url":"https://api.github.com/users/peter-mouland","html_url":"https://github.com/peter-mouland","followers_url":"https://api.github.com/users/peter-mouland/followers","following_url":"https://api.github.com/users/peter-mouland/following{/other_user}","gists_url":"https://api.github.com/users/peter-mouland/gists{/gist_id}","starred_url":"https://api.github.com/users/peter-mouland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peter-mouland/subscriptions","organizations_url":"https://api.github.com/users/peter-mouland/orgs","repos_url":"https://api.github.com/users/peter-mouland/repos","events_url":"https://api.github.com/users/peter-mouland/events{/privacy}","received_events_url":"https://api.github.com/users/peter-mouland/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-30T12:32:57Z","updated_at":"2018-06-30T12:32:57Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n    ESLint adheres to the [JS Foundation Code of Conduct](https://js.foundation/community/code-of-conduct).\r\n\r\n    This template is for requesting a rule change. If you are here for another reason, please see below:\r\n\r\n    1. To report a bug: https://eslint.org/docs/developer-guide/contributing/reporting-bugs\r\n    2. To propose a new rule: https://eslint.org/docs/developer-guide/contributing/new-rules\r\n    3. To request a change that is not a bug fix, rule change, or new rule: https://eslint.org/docs/developer-guide/contributing/changes\r\n    4. If you have any questions, please stop by our chatroom: https://gitter.im/eslint/eslint\r\n\r\n    Note that leaving sections blank will make it difficult for us to troubleshoot and we may have to close the issue.\r\n-->\r\n\r\n**What rule do you want to change?**\r\narrow-body-style\r\n\r\n**Does this change cause the rule to produce more or fewer warnings?**\r\nmore\r\n\r\n**How will the change be implemented? (New option, new default behavior, etc.)?**\r\nnew option\r\n\r\n**Please provide some example code that this change will affect:**\r\n\r\n<!-- Put your code examples here -->\r\n```js\r\n\r\n(foo) =>\r\n  my()\r\n    .chaining()\r\n    .function();\r\n\r\n```\r\n\r\n**What does the rule currently do for this code?**\r\nThis is perfectly valid and nothing changes. \r\n\r\n\r\n**What will the rule do after it's changed?**\r\nMy preference would be to say if it is multi-line, that brackets `(`) are used, and to not force braces `{`.\r\n\r\n```js\r\n\r\n(foo) => (\r\n  my()\r\n    .chaining()\r\n    .function()\r\n);\r\n```\r\nplus, together with `implicit-arrow-linebreak` set to beside, the result before the change is:\r\n\r\n```js\r\n\r\n(foo) => my()\r\n  .chaining()\r\n  .function();\r\n\r\n```\r\nafter the change applying `implicit-arrow-linebreak` set to beside both rules work together and don't conflict:\r\n\r\n```js\r\n\r\n(foo) => (\r\n  my()\r\n    .chaining()\r\n    .function()\r\n);\r\n```\r\n"}}
{"actor":{"display_login":"peter-mouland"}}