How can I make Prettier maintain a short multiline list? #16069
Replies: 1 comment
-
If having two lines in this code is critical for you, you can add Prettier 3.2.5 --parser babel Input: /** @type {import("prettier").Config} */
export default {
plugins: [ //
"prettier-plugin-astro",
"prettier-plugin-tailwindcss",
],
}; Output: /** @type {import("prettier").Config} */
export default {
plugins: [
//
"prettier-plugin-astro",
"prettier-plugin-tailwindcss",
],
}; |
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
-
Take this for example
With Black formatter for Python, I would simply add a trailing comma after the last item and it would turn it into a multi-line list upon formatting.
Possibly a suggestion to make? Or is it already a setting I'm missing?
Beta Was this translation helpful? Give feedback.
All reactions