-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Epic: Trailing commas in TS/Flow #6198
Comments
I think yes, we planned same for php plugin, sometimes languages change syntax
To avoid breaking code we should considered:
|
Same thing can be applied to TS/Flow as well. |
@ikatyang your solution sounds reasonable. I'll investigate that for 2.0 |
We can probably close this issue in favor of #11465 |
I just noticed #3722 is still open. Should that be included with Prettier 3? |
Fixed by #14085 |
This is an old problem and I thought I had an issue open to discuss this topic, but we should make a decision on this matter:
How do we handle trailing commas in different versions of Flow/TS?
Should we add
flowXXX
andtsX.X
options?Should we always support new trailing commas in
"all"
and treat"es5"
as"none"
?cc @prettier/core
The text was updated successfully, but these errors were encountered: