Prettier 1.17.0
Playground link
Input:
app.get("/", (req, res): void => {
res.send("Hello World!");
});
Output:
app.get(
"/",
(req, res): void => {
res.send("Hello World!");
}
);
Expected behavior:
app.get("/", (req, res): void => {
res.send("Hello World!");
});
As soon as you try to type the returned value for the function with ": void" it incorrectly breaks the function in multiple lines.