-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Description
What input code did you provide to the formatter?
enum Conferences {
FlutterAndFriends,
FlutterLatAm,
FlutterCon,
FlutterVikings,
}
What output did the formatter produce?
enum Conferences { FlutterAndFriends, FlutterLatAm, FlutterCon, FlutterVikings }
What output did you expect or want the formatter to produce?
Describe how you expected the formatter to format the code, ideally by showing what you had in mind as code.
enum Conferences {
FlutterAndFriends,
FlutterLatAm,
FlutterCon,
FlutterVikings,
}
Anything else we should know?
Some formatters are forcing trailing commas on enums (like Prettier, thanks for the reference Bob!), and I think we should do the same.
Here are some reasons why I think this would be a good idea:
- Cleaner Diffs in Version Control
- Easier Reordering
- Simplifies Adding/Removing Items
- Improves Readability
Pingear, erickzanardo, C0Florent, munificent, julemand101 and 3 morePingear
Metadata
Metadata
Assignees
Labels
No labels