Lucas Duailibe

Results 40 comments of Lucas Duailibe

Practically speaking, since we have the multiparser behavior for a long time and the only real complaints have been about HTML[1], I guess we should start with an option to...

@bakkot @lydell Yeah, you are right. @lydell I like this suggestion and I don't think it can be done in a 1.x release.. A possible solution would be to add...

@machineghost I invite you to read our docs section about [our philosophy on options](https://prettier.io/docs/en/option-philosophy.html) which answers your post more in depth.

@machineghost To be perfectly honest, Prettier has no interest in how people write their code. Users can very well write everything in a single line and Prettier won't say a...

Yeah people complain that they behave differently (as in object literals you can force multiline whereas when destructuring you can't) but the solution is not to make them behave the...

@nescalante If the issue is open, it's still being considered

I've just merged a PR (#4267) that addresses some of the cases reported here. You can try it out on the [PR's playground](https://deploy-preview-4267--prettier.netlify.com/playground/#N4Igxg9gdgLgprEAuc0DOMAExMFc1wBOS2mAZgJaEYByAhgLZwA0mANnbY3JgL5+YAvJhgALCmgB0AB0IRpaANwAdKKshQM2VZkxRuJHJWoxWHLb2Y7MEQgHM6UCXRgVohzHQAmXwnDRoHhh+cDAktnYAyjAhMACCPn4BrNIQGJBecOH2AAppMBk8-Lyq-ML4RCpqUGS4UGCu0OQAFDheLnQe+kwCvACU2CXVGloAqgSEAMIQDKlQCFjCtfWNUK3W3VmkxhhmnFiW1hGOzqse3r7+gaTBcKHZUTF38YlXKfmFD3npEJm9VlB+tooLo-DBcIRqrwqup0FgcHRWAAjVhgVheDxFATCNAzOAAeSRACs4A0qiBmCB5Ks0MhQHRCHIAO45BkIWkoOgANwgFC8FJA+2QZDobAIlKRhDoYAA1qFItJpRQoHZkDFcCwQF4IGBhaLxSBlRMYDkpXYGHQ9WLNUS0AAPABCUtl8u4ABllXArQaILgYNI-QAmb2axXUIjIEBIuhIgCebGgAtkypgAHU+WJkAAOAAMlNkaTgqal0kjsn8RC5XspfgAjrgqHBTXRzZakCLrZSCAwKGrCBqu8q7Gw4ABFXAQeAhykwGPpryZpCBmdSihsIfTBgWyNQaDVkAVAAqMY5HYIvF4QA).

@jcollum We're now breaking when there's nested destructuring.. see the [blog post of 1.12](https://prettier.io/blog/2018/04/11/1.12.0.html#break-objectpattern-s-with-nested-objectpattern-s-4267-https-githubcom-prettier-prettier-pull-4267-by-duailibe-https-githubcom-duailibe). We're not sure this does address all the cases discussed here, so the issue is still...

> For me, prettier should brake only code that exceeds line max length limit @leojnxs Sure but that's not how Prettier works. Please be more respectful

> The issue is that Prettier tries to guess the more readable formatting based on a dumb heuristic: if it's even one character past a threshold, then wrap, otherwise, inline....