Prettier 1.11.1
Playground link
Input:
function x() {
const permissionsChecker =
<PermissionsChecker<any> | undefined>(<any>permissions)[receiverType];
}
Output:
function x() {
const permissionsChecker = <
| PermissionsChecker<any>
| undefined>(<any>permissions)[receiverType];
}
Expected behavior:
Ideally, I think it would leave the code as input.
Prettier 1.11.1
Playground link
Input:
Output:
Expected behavior:
Ideally, I think it would leave the code as input.