-
Notifications
You must be signed in to change notification settings - Fork 659
No trailing commas for tuple types #2418
Comments
I don't think we should adhere to this. So sorry guys, but I am adamant on this one, count me out 😆 Trailing commas are really useful (I hated them but now I love them) when we want to add additional members at the end of the list. By duplicating the last line, the list is not broken and we can add stuff without the worry of the autocomplete not working. Plus, it's consistent with the rest of the formatting (where trailing commas are allowed) |
Prettier's The Option's documentation explains why they aren't adding a trailing comma by default:
So the issue is that TypeScript didn't support trailing commas until the 2.7 release. I think we can put this back on hold until we made a decision if Rome should support a |
@NicholasLYang @yassere do you mind weight in and share your thoughts? Given the history shard by Micha and the fact that language targets are a non-goal for us, what's your take? |
What do you mean by this? If we're choosing not to support a If we find that not including a |
We don't target versions of the languages that are old. For example es3 or old Node.js 8, as quoted by Micha. |
As for now, target version is a non-goal for us and as we decided to not support |
Rome formatter inserts a trailing comma for tuple types, Prettier doesn't
Input
Prettier
Rome
Expected
No trailing comma after
Number
The text was updated successfully, but these errors were encountered: