-
I'm using example: //input
<Text style={{fontSize: 34, fontFamily: 'Custom Font', letterSpacing: 1.5, marginBottom: 8, color: colors.primary, textAlign: 'center'}}>
My Title
</Text>
//prettier formatted
<Text
style={{
fontSize: 34,
fontFamily: 'Custom Font',
letterSpacing: 1.5,
marginBottom: 8,
color: colors.primary,
textAlign: 'center',
}}
>
My Title
</Text> I want to keep my //input
<Text numberOfLines={3} style={{fontSize: 34, fontFamily: 'Custom Font', letterSpacing: 1.5, marginBottom: 8, color: colors.primary, textAlign: 'center'}}>
My Title
</Text>
//expected formatted output
<Text
numberOfLines={3}
style={{fontSize: 34, fontFamily: 'Custom Font', letterSpacing: 1.5, marginBottom: 8, color: colors.primary, textAlign: 'center'}}
>
My Title
</Text> is there some way to setup prettier disable new line for specific attributes? |
Beta Was this translation helpful? Give feedback.
Answered by
duailibe
Dec 7, 2022
Replies: 1 comment
-
No, there isn't. The only thing you can do is add a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kachkaev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.