2 ms·
Prettier removes any parentheses that aren't strictly necessary. So if you type: value = (a ? ((a * b) + c) : d); It turns into: value = a ? a * b + c :
by bakugo 3y ago
Prettier removes any parentheses that aren't strictly necessary. So if you type:
value = (a ? ((a * b) + c) : d);
It turns into:
value = a ? a * b + c : d;
This is just a very basic example, there are many situations where the result is way worse. I feel pretty confident in saying that this is quite obviously stupid.