-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
[TypeScript] Trailing commas from type exports removed #5846
Copy link
Copy link
Labels
lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Metadata
Metadata
Assignees
Labels
lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Prettier 1.16.4
Playground link
Input:
Output:
Expected behavior:
Keep input as-is
Note that using
babel,babel-floworflowparser keeps the trailing comma