Open cyberbiont opened 4 years ago
The problem seems to more be more serious, something is wrong with the way parenthesis are inserted around expressions. For example, simple ternary expression:
b = a ? b * 2 : b * 3
gets formatted as
b = a ? (b * 2) : (b * 3)
then
b = a ? ((b * 2)) : ((b * 3))
and each subsequent formatting keeps adding parentheses.
Is there at least an option to turn off parentheses around expressions at all ?
when I use variable in require path, something like
parentheses are added every time on formatting, like this
then
etc.
I found a workaround is to as add empty string at the beginning
But I'm reporting it just in case.