-
-
Notifications
You must be signed in to change notification settings - Fork 877
Closed
Copy link
Labels
A-formatter-prettier-diffArea - Formatter difference with PrettierArea - Formatter difference with Prettier
Description
Input
// index.mts
const fn = <T,>() => {}Config
Oxfmt output
Oxfmt version: latest
// index.mts
const fn = <T>() => {};Oxfmt playground link
Prettier output
Prettier version: 3.8.1
// index.mts
const fn = <T,>() => {};Prettier playground link
No response
Additional notes
After the comma is automatically removed, ts/oxc throws an error:
Oxc Error: This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-formatter-prettier-diffArea - Formatter difference with PrettierArea - Formatter difference with Prettier
{}