Replies: 1 comment 1 reply
-
Prettier will break lines depending on the value of print-width(default 80). I think you can avoid this by increasing print-width. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For a developer using JSX an
<a .../>
element is pretty irrelevant, type it once and forget it.On the contrary, a custom
<Button ... />
component and its props are pretty important.But Prettier, of course, knows better!
It doesn't like my Button
And thinks this is better
On the other hand, this is apparently too bad
So prettier decides this is better
Beta Was this translation helpful? Give feedback.
All reactions