{"action":"created","issue":{"url":"https://api.github.com/repos/prettier/prettier/issues/3101","repository_url":"https://api.github.com/repos/prettier/prettier","labels_url":"https://api.github.com/repos/prettier/prettier/issues/3101/labels{/name}","comments_url":"https://api.github.com/repos/prettier/prettier/issues/3101/comments","events_url":"https://api.github.com/repos/prettier/prettier/issues/3101/events","html_url":"https://github.com/prettier/prettier/issues/3101","id":268183689,"node_id":"MDU6SXNzdWUyNjgxODM2ODk=","number":3101,"title":"Option to retain multi-line props in JSX/HTML","user":{"login":"damassi","id":236943,"node_id":"MDQ6VXNlcjIzNjk0Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/236943?v=4","gravatar_id":"","url":"https://api.github.com/users/damassi","html_url":"https://github.com/damassi","followers_url":"https://api.github.com/users/damassi/followers","following_url":"https://api.github.com/users/damassi/following{/other_user}","gists_url":"https://api.github.com/users/damassi/gists{/gist_id}","starred_url":"https://api.github.com/users/damassi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damassi/subscriptions","organizations_url":"https://api.github.com/users/damassi/orgs","repos_url":"https://api.github.com/users/damassi/repos","events_url":"https://api.github.com/users/damassi/events{/privacy}","received_events_url":"https://api.github.com/users/damassi/received_events","type":"User","site_admin":false},"labels":[{"id":931887113,"node_id":"MDU6TGFiZWw5MzE4ODcxMTM=","url":"https://api.github.com/repos/prettier/prettier/labels/lang:html","name":"lang:html","color":"006b75","default":false},{"id":684255870,"node_id":"MDU6TGFiZWw2ODQyNTU4NzA=","url":"https://api.github.com/repos/prettier/prettier/labels/lang:jsx","name":"lang:jsx","color":"006b75","default":false},{"id":516128597,"node_id":"MDU6TGFiZWw1MTYxMjg1OTc=","url":"https://api.github.com/repos/prettier/prettier/labels/status:needs%20discussion","name":"status:needs discussion","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":80,"created_at":"2017-10-24T20:58:36Z","updated_at":"2018-11-19T00:39:34Z","closed_at":null,"author_association":"NONE","body":"Right now I'm finding that Prettier collapses JSX attributes onto a single line, up until the column width. This (in my opinion) feels much harder to read as it requires the eyes to constantly scan left to right rather than \"glance\" at a single block. \r\n\r\nWould you be open to an option that disables this forced single-line output? \r\n\r\n**Prettier 1.7.4**\r\n[Playground link](https://prettier.io/playground/#%7B%22content%22%3A%22const%20f%20%3D%20()%20%3D%3E%20(%5Cn%20%20%3CFoo%5Cn%20%20%20%20hello%3D%7Bbaz%7D%5Cn%20%20%20%20how%3D%7Bare%7D%5Cn%20%20%20%20you%3D%7Ba%7D%5Cn%20%20%20%20hi%3D%7Bc%7D%5Cn%20%20%2F%3E%5Cn)%22%2C%22options%22%3A%7B%22ast%22%3Afalse%2C%22bracketSpacing%22%3Atrue%2C%22doc%22%3Afalse%2C%22jsxBracketSameLine%22%3Afalse%2C%22output2%22%3Afalse%2C%22parser%22%3A%22babylon%22%2C%22printWidth%22%3A80%2C%22semi%22%3Atrue%2C%22singleQuote%22%3Afalse%2C%22tabWidth%22%3A2%2C%22trailingComma%22%3A%22none%22%2C%22useTabs%22%3Afalse%7D%7D)\r\n\r\n**Input:**\r\n```jsx\r\nconst f = () => (\r\n  <Foo\r\n    hello={baz}\r\n    how={are}\r\n    you={a}\r\n    hi={c}\r\n  />\r\n)\r\n```\r\n\r\n**Output:**\r\n```jsx\r\nconst f = () => <Foo hello={baz} how={are} you={a} hi={c} />;\r\n```\r\n\r\n**Expected behavior:**\r\nRetain line breaks. "},"comment":{"url":"https://api.github.com/repos/prettier/prettier/issues/comments/439741146","html_url":"https://github.com/prettier/prettier/issues/3101#issuecomment-439741146","issue_url":"https://api.github.com/repos/prettier/prettier/issues/3101","id":439741146,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTc0MTE0Ng==","user":{"login":"aboyton","id":7865563,"node_id":"MDQ6VXNlcjc4NjU1NjM=","avatar_url":"https://avatars0.githubusercontent.com/u/7865563?v=4","gravatar_id":"","url":"https://api.github.com/users/aboyton","html_url":"https://github.com/aboyton","followers_url":"https://api.github.com/users/aboyton/followers","following_url":"https://api.github.com/users/aboyton/following{/other_user}","gists_url":"https://api.github.com/users/aboyton/gists{/gist_id}","starred_url":"https://api.github.com/users/aboyton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboyton/subscriptions","organizations_url":"https://api.github.com/users/aboyton/orgs","repos_url":"https://api.github.com/users/aboyton/repos","events_url":"https://api.github.com/users/aboyton/events{/privacy}","received_events_url":"https://api.github.com/users/aboyton/received_events","type":"User","site_admin":false},"created_at":"2018-11-19T00:39:34Z","updated_at":"2018-11-19T00:39:34Z","author_association":"CONTRIBUTOR","body":"A number of people have requested in this issue for Prettier to enforce one attribute/prop per line (rather than preserving the original whitespace). This is the model that I think it better as it fits what many style guides already enforce and leaves Prettier option free. I have created a seperate issue #5501 that people can 👍 and 👎 to, rather than people scattering their 👍 and 👎  on individual suggestions in this issue. I haven't included an option to specify the number of attributes per line as most people set it to 1 it seems."}}
{"actor":{"display_login":"aboyton"}}