Replies: 1 comment
-
Hello @viveleroi how did you manage to get the objects expanded to multiple lines? Curly braces alone on the row? I am not succesfull doing this. I would also appreciate more control over arrays. For example like this. It was possible with "Prettier now" extension which is deprecated. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Because format linters like eslint and stylelint are dropping format rules and recommending prettier, we're planning to move over. However, we've been very specific and have had the same format rules for a decade so I'm trying to configure prettier as closely as possible.
I've run through the config docs but I see absolutely no way for us to control arrays. We prefer to define arrays like this, with brackets on the same line - it's shorter and requires one less indentation:
But prettier forces the array formatting to this:
Worst case scenario, we'll adapt - but is there truly no way to configure this? Seems odd to me we don't get a choice.
Beta Was this translation helpful? Give feedback.
All reactions