flutter-surf-lint-rules icon indicating copy to clipboard operation
flutter-surf-lint-rules copied to clipboard

Preserve trailing commas

Open spydon opened this issue 7 months ago • 1 comments

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 set of lint rules, so that the people depending on this package can continue to enjoy their trailing commas.

This is what would need to be added:

formatter:
  trailing_commas: preserve

spydon avatar May 23 '25 09:05 spydon