New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{ "brace_style": "preserve-inline" } not working as expected with multiline function parameters #1579
Comments
It is the But it could be argued that |
Ok, I have tried with config:
And the result is the same...also I think this happen only in function params context, all others cases are ok, hope I have some time to check it out. |
Hi, for those looking for a solution, here is a workaround: myFunc( //
{ myProp: true }, //
{ myProp: true }, //
{ myProp: true }); When I put empty comment it wont reformat to one line. At least on VScode. It doesn't render less lisible and is easily removable projectwide with a search and replace ( Hope it can help... |
@sebRomeo |
Description
Hi, first a big thanks to you guys for such a great library !
I have a problem when I use multiline function arguments that contains objects:
Expected Output
But when I try:
Actual Output
All is reformatted in one line...
I am pretty sure it has to do with { "brace_style": "preserve-inline" } rule.
Environment
OS: Linux Mint
code Editor: VSCode
Settings
Example:
Thank you again ;)
The text was updated successfully, but these errors were encountered: