Prettier v3.9.4
Playground link
Input:
createObject<{
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type -- ignore
[key in keyof Function]: TypeInfo | null
}>
Output:
createObject<
{
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type -- ignore
[key in keyof Function]: TypeInfo | null;
}
>;
Expected output:
createObject<{
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type -- ignore
[key in keyof Function]: TypeInfo | null
}>
Why?
Prettier v3.9.4
Playground link
Input:
Output:
Expected output:
Why?