Fixes #5238. cc @duailibe for the [original change](https://github.com/prettier/prettier/pull/4413). I basically undid that PR because it didn't look to me like `shouldFlatten` made sense as the place to introduce the behavior it was going for, but I might have misunderstood something.
10 lines
109 B
JavaScript
10 lines
109 B
JavaScript
a ** b ** c;
|
|
(a ** b) ** c;
|
|
a.b ** c;
|
|
(-a) ** b;
|
|
a ** -b;
|
|
-(a**b);
|
|
(a * b) ** c;
|
|
a ** (b * c);
|
|
(a % b) ** c;
|