-
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.
Replies: 1 comment
-
No, there isn't. The only thing you can do is add a |
Beta Was this translation helpful? Give feedback.
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.