Join GitHub today
Add softline to assignment of binary expressions #871
referenced this pull request
Mar 3, 2017
This doesn't solve the issue. There are several other cases where the expression might have parens. One that quickly comes to mind is after your PR #862, we will add parens here:
let y; const x = (y = 111111111 + 222222222 + 33333333 + 111111111 + 222222222 + 33333333);
This is the output with this branch rebased with your other PR.
I don't think we need to unconditionally bump down binary expressions. I guess we need to somehow figure out if the first expression requires parenthesis and only do it then.