You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Prettier correctly handles necessary trailing commas if the file extension is .tsx, it seems that the information that VSCode gives to Prettier is insufficient.
See also prettier/prettier#6302.
shiatsumat
added a commit
to shiatsumat/prettier-vscode
that referenced
this issue
Sep 25, 2019
Summary
Trailing comma in this example
.tsx
file gets removed. The comma is necessary for the typescript compiler to recognize that it's a type not a JSX tagIt seems to be not an issue in prettier itself
VS Code Version:
1.38.0
Prettier & Prettier Plugin Version:
2.2.2
OS and version:
Windows 10
The text was updated successfully, but these errors were encountered: