3 ms·
One thing that bugs me about Prettier is that JSX intentionally does not respect your quote setting -- it always uses double quotes. It's not a big deal but it'
by ng12 9y ago
One thing that bugs me about Prettier is that JSX intentionally does not respect your quote setting -- it always uses double quotes. It's not a big deal but it's such weird issue to put your foot down over. Make it respect your setting and be done with it.
- mehrdadn 9y agoThey shouldn't even be used interchangeably... if you have two different ways of doing something, you put that bit of information to good use, not make a mess of it. Personally I always use double quotes should for user-facing (generally, i18n'able) strings, reserving single quotes for internal strings/symbols. IMHO everyone should do this.
- underwater 9y agoSingle quotes are not valid in JSX.
- ng12 9y agoThat's not true.
- underwater 9y agoHuh. You’re right. I’m fairly sure it used to be true.