Prettier.js Method Arguments on newline formatting

As far as I know, for now, there isn’t an option for doing so. When your arguments get over the printWidth ( default 80), prettier will break each argument into a separate line.

One way could be to increase the printWidth option so that your arguments stay on the same line. The prettier documentation mentions maximum line length rules are often set to 100 or 120 (https://prettier.io/docs/en/options.html)

Leave a Comment