I want to use dart format
to format dart code, but my team uses custom format rules – such as line length of 120 characters and a few other things. Currently, code is formatted using settings in the IDE, but this is not ideal because it's not consistent across the team.
I know analysis_options.yaml
can be used to configure static analysis, but I can't find a way to configure dart format
to use the same rules.
Is there a way to configure dart format
to use custom formatting rules?
Apparently, you can set line length by adding arguments dart format --line-length 240 .
I suppose the question is: What other options exist?
dart format --line-length 240 .
I have not found documentation on what options are available. – Dutradart format
including line-length and indentation. github.com/dart-lang/dart_style/blob/… – Dutra