Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config via JSON needs documentation #4

Open
eggnstone opened this issue Mar 3, 2024 · 3 comments
Open

Config via JSON needs documentation #4

eggnstone opened this issue Mar 3, 2024 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@eggnstone
Copy link
Owner

@staginghub reported in eggnstone/DartFormatJetbrainsPlugin#20:
"I've also tried to use dart_format with json, but i'm getting an error. Theres no documentation on the command line json format.

@eggnstone eggnstone added the documentation Improvements or additions to documentation label Mar 3, 2024
@eggnstone eggnstone self-assigned this Mar 3, 2024
@eggnstone
Copy link
Owner Author

@staginghub
Please see https://github.com/eggnstone/dart_format/blob/master/example/main.dart
Hope this helps a little.

@rainyl
Copy link

rainyl commented Apr 12, 2024

Great poject, I just want more line-length configurations but those stubborn guys didn't want to change in the past 4 years, dart-lang/dart_style#833.
The .editorconfig has already been widely used and it's powerfull, so can we just use it as the default config file?
for example:

[*.dart]
max_line_length = 120

to set max line length.

@eggnstone
Copy link
Owner Author

@rainyl Thanks! As for your suggestion I created a separate issue: #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants