Describe the bug
dprint-plugin-typescript version: 0.95.12
looks like there is a bug when formatting code inside anonymous functions
Input Code
const startingFrom = Mylib.map(DateTime.now, now => DateTime.startOf(now, "day"));
const func = () =>
function() {
const startingFrom = Mylib.map(DateTime.now, now => DateTime.startOf(now, "day"));
}
Expected Output
const startingFrom = Mylib.map(
DateTime.now,
now => DateTime.startOf(now, "day"),
);
const func = () =>
function() {
const startingFrom = Mylib.map(
DateTime.now,
now => DateTime.startOf(now, "day"),
);
};
Actual Output
const startingFrom = Mylib.map(
DateTime.now,
now => DateTime.startOf(now, "day"),
);
const func = () =>
function() {
const startingFrom = Mylib.map(DateTime.now, now =>
DateTime.startOf(now, "day"));
};