Currently in the project I'm working on we have 3K+ Problems, 577 of those are Missing a required trailing comma. It's very easy to fix, but at the same time it's very time consuming so...
Question: Is there any way to set every missing trailing comma in project? Basically I want to reduce the overall time it may take me to make those monotonous changes.
Maybe it exists a dart package or VS Code extension that does that for me? Haven't found any.
Add require_trailing_commas rule to analysis_options.yaml
rules:
require_trailing_commas: true
and run
dart fix --apply
See dart fix for details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With