Skip to content

Prettier - disable new line on specific attributes in JSX (e.g style props) #13767

Answered by duailibe
flixyudh asked this question in Q&A
Discussion options

You must be logged in to vote

is there some way to setup prettier disable new line for specific attributes?

No, there isn't. The only thing you can do is add a// prettier-ignore comment right before the line, but you'll also lose any other formatting.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kachkaev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants