Prettier - Break line with comma like Dart Code

Viewed 19

I have a question about Prettier. How can I have formatting like Dart Code does. What I mean is, when you put a comma in a function, it breaks the line there.

For example, when formatting the code below

callback( a, b, c, )

The output is going to be

editor.addListener(
   a,
   b,
   c, 
)

So, it is like comma -> line break.

0 Answers
Related