-
-
Notifications
You must be signed in to change notification settings - Fork 879
Closed
Copy link
Labels
A-formatter-prettier-diffArea - Formatter difference with PrettierArea - Formatter difference with Prettier
Description
Input
type SomeType<T> = any;
type OtherType = any;
const x = [].reduce(() => {
return "y";
}, {} as SomeType<OtherType>);Config
Oxfmt output
Oxfmt version: 0.23.0
type SomeType<T> = any;
type OtherType = any;
const x = [].reduce(
() => {
return "y";
},
{} as SomeType<OtherType>,
);Oxfmt playground link
No response
Prettier output
Prettier version: 3.7.4
type SomeType<T> = any;
type OtherType = any;
const x = [].reduce(() => {
return "y";
}, {} as SomeType<OtherType>);Prettier playground link
No response
Additional notes
I can only speculate it has something to do with the generic bracket notation <OtherType>. Without using a generic there are no formatting differences
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-formatter-prettier-diffArea - Formatter difference with PrettierArea - Formatter difference with Prettier
{}