Comment on I dunno
merc@sh.itjust.works 1 week agoI got really angry because the prettier code formatter insists on removing parentheses, making things less clear. Because it’s an “opinionated” formatter you can’t tell it not to do that without using ugly hacks.
Sure, logically there are times when you don’t need them. But, often it helps to explain what’s happening in the code when you can use parentheses to group certain things. It helps in particular when you want to use “&&” and “||” to say “do X only if Y fails”.
jjjalljs@ttrpg.network 1 week ago
I think you can do
// prettier-ignore, because I remember facing that exact situation.prettier.io/docs/ignore/
merc@sh.itjust.works 1 week ago
I’ve done that, but that’s ugly.