sorawee / fmt

A code formatter for Racket
Other
72 stars 6 forks source link

How to use the CLI option --config #52

Closed bitst0rm closed 6 months ago

bitst0rm commented 6 months ago

There is an undocumented option --config raco fmt --config /path/to/myconfig.rkt

I am not familiar with Racket. Instead of using CLI option --xxx directly, could you please provide an example to use user-config file with formatting rules like this: myconfig.rkt:

width 60
limit 80
max-blank-lines 0
indent 3

Thanks!

sorawee commented 6 months ago

It is undocumented because it is unstable, and more of a proof-of-concept. But if you don't mind that, you can take a look at

for examples. Feel free to let me know if you have any further questions.