Skip to content

fix: Preserve trailing commas#484

Open
spydon wants to merge 12 commits intocanonical:mainfrom
spydon:fix/preserve-trailing-commas
Open

fix: Preserve trailing commas#484
spydon wants to merge 12 commits intocanonical:mainfrom
spydon:fix/preserve-trailing-commas

Conversation

@spydon
Copy link
Contributor

@spydon spydon commented May 23, 2025

Note

This can't be merged until Dart SDK is at least ^3.6.0 (possibly 3.8.0)

After the new formatter was introduced it started removing trailing commas. Trailing commas is a feature which most of the Flutter & Dart community like since it makes the git diffs less noisy and the code easier to read.

My suggestion in that we add trailing_commas: preserve to the next version of this package, so that the people depending on this package can continue to enjoy their trailing commas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant