{"action":"created","issue":{"url":"https://api.github.com/repos/prettier/prettier/issues/4922","repository_url":"https://api.github.com/repos/prettier/prettier","labels_url":"https://api.github.com/repos/prettier/prettier/issues/4922/labels{/name}","comments_url":"https://api.github.com/repos/prettier/prettier/issues/4922/comments","events_url":"https://api.github.com/repos/prettier/prettier/issues/4922/events","html_url":"https://github.com/prettier/prettier/issues/4922","id":346448013,"node_id":"MDU6SXNzdWUzNDY0NDgwMTM=","number":4922,"title":"Keep parameter decorators on different lines as parameter when possible (Babylon, TypeScript)","user":{"login":"JoshuaKGoldberg","id":3335181,"node_id":"MDQ6VXNlcjMzMzUxODE=","avatar_url":"https://avatars1.githubusercontent.com/u/3335181?v=4","gravatar_id":"","url":"https://api.github.com/users/JoshuaKGoldberg","html_url":"https://github.com/JoshuaKGoldberg","followers_url":"https://api.github.com/users/JoshuaKGoldberg/followers","following_url":"https://api.github.com/users/JoshuaKGoldberg/following{/other_user}","gists_url":"https://api.github.com/users/JoshuaKGoldberg/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshuaKGoldberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshuaKGoldberg/subscriptions","organizations_url":"https://api.github.com/users/JoshuaKGoldberg/orgs","repos_url":"https://api.github.com/users/JoshuaKGoldberg/repos","events_url":"https://api.github.com/users/JoshuaKGoldberg/events{/privacy}","received_events_url":"https://api.github.com/users/JoshuaKGoldberg/received_events","type":"User","site_admin":false},"labels":[{"id":707748687,"node_id":"MDU6TGFiZWw3MDc3NDg2ODc=","url":"https://api.github.com/repos/prettier/prettier/labels/lang:javascript","name":"lang:javascript","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},{"id":491115805,"node_id":"MDU6TGFiZWw0OTExMTU4MDU=","url":"https://api.github.com/repos/prettier/prettier/labels/type:feature","name":"type:feature","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-01T04:55:26Z","updated_at":"2018-08-03T16:07:27Z","closed_at":null,"author_association":"NONE","body":"**Prettier 1.14.0**\r\n[Playground link](https://prettier.io/playground/#N4Igxg9gdgLgprEAucAbAhgZ0wAgGIQQ7AA6UOOkUmMATgK5gwS0AUZFJMAAgJZQArOE1YAhdLQCUHTjAAOtXgDd08HLTjoAJtFQBPHACMJSHAElxtADQyKOW1z6DhMVgFk9ABVoQwcbCzS5PbyiipqGtq6BgC2Xj5+AbSmZh7evv6YLFb2wXa5+U5CImbOTLzQACp6cv4AdACCUBAwABZwtJWt-ADmQVwKyqpw6po6UPo46M1tHV29KU0t7Z3dUD04AD449DKSxDgAvmSHIFYgEHIwFdTIoBI+AO6eEgiYyCDoShC8Wmcghlo6DAAGs4DAAMpyYG9ZB0ehwc78TAdGDedA9GLoZAAM3QqBR5wEmAAHqIgaDwRD0DE4AAZfhwXH4wkgaG0FG0D4wGr+MCKK7-QawADqvzayAAHAAGc4KCAokVAuQfBT+DpKJnnDQAR3ovA06Mx2KQeIJiJAKJivDhDAtmF6qDgAEV6C0maaWRaYOhDGKtBKkAAmc50dC8VC9ADCEBiWI++NQ-3oKMqvvenvNh0OQA)\r\n```sh\r\n# Options (if any):\r\n--parser typescript --trailing-comma all\r\n```\r\n\r\n**Input:**\r\n```typescript\r\nclass Foo {\r\n  constructor(\r\n    @inject(Bar)\r\n    private readonly bar: IBar,\r\n\r\n    @inject(MyProcessor)\r\n    private readonly myProcessor: IMyProcessor, \r\n\r\n    @inject(InjectionTypes.AnotherThing)\r\n    private readonly anotherThing: IAnotherThing | undefined,\r\n  ) { }\r\n}\r\n```\r\n\r\n**Output:**\r\n```typescript\r\nclass Foo {\r\n  constructor(\r\n    @inject(Bar) private readonly bar: IBar,\r\n    @inject(MyProcessor) private readonly myProcessor: IMyProcessor,\r\n    @inject(InjectionTypes.AnotherThing)\r\n    private readonly anotherThing: IAnotherThing | undefined,\r\n  ) {}\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nIt's very difficult to read constructor parameters when they're on the same line and have irregular levels of starting indentation. The input is what you would expect a well-formatted document to look like.\r\n\r\nCounterpart to #1974. I'd personally prefer to just send a revert PR for #459 (@vjeux) as this code sample is very common with libraries such as [http://inversify.io](Inversify). If it's desirable to have the current behavior, I'd also be more than happy to send a PR that adds a flag."},"comment":{"url":"https://api.github.com/repos/prettier/prettier/issues/comments/410300655","html_url":"https://github.com/prettier/prettier/issues/4922#issuecomment-410300655","issue_url":"https://api.github.com/repos/prettier/prettier/issues/4922","id":410300655,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDMwMDY1NQ==","user":{"login":"suchipi","id":1341513,"node_id":"MDQ6VXNlcjEzNDE1MTM=","avatar_url":"https://avatars0.githubusercontent.com/u/1341513?v=4","gravatar_id":"","url":"https://api.github.com/users/suchipi","html_url":"https://github.com/suchipi","followers_url":"https://api.github.com/users/suchipi/followers","following_url":"https://api.github.com/users/suchipi/following{/other_user}","gists_url":"https://api.github.com/users/suchipi/gists{/gist_id}","starred_url":"https://api.github.com/users/suchipi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suchipi/subscriptions","organizations_url":"https://api.github.com/users/suchipi/orgs","repos_url":"https://api.github.com/users/suchipi/repos","events_url":"https://api.github.com/users/suchipi/events{/privacy}","received_events_url":"https://api.github.com/users/suchipi/received_events","type":"User","site_admin":false},"created_at":"2018-08-03T16:07:27Z","updated_at":"2018-08-03T16:07:27Z","author_association":"MEMBER","body":"@JoshuaKGoldberg I think we should preserve empty lines from user input in that case, like we do with statements."}}
{"actor":{"display_login":"suchipi"}}