Open
Description
We can't in general know the operator precedence because that would break the goal of being able to format any code consistently without having to have more info from the context. But maybe for operators that are defined in core, we could do special handling given the known precendence and associativity.
One common example is people using &&
and ||
. We could detect this and add the recommended parentheses.
Activity