bram209 / leptosfmt

A formatter for the leptos view! macro
Apache License 2.0
258 stars 27 forks source link

Rewrite based on Prettier Rules #100

Closed jpx40 closed 2 months ago

jpx40 commented 9 months ago

Hey, started to play a little bit around with the source code. I noticed that still a lot of stuff missing, i mean the rules aren't very strict (stuff like line breaks of tags on the same level). I am currently in an learning process of stuff like traits and macros is new for me. I want to ask if you are interested in an rewrite of the Rule set based prettier (basically port prettier to Rust). I would to offer my help.

bram209 commented 2 months ago

Hi, I am open to contributions. I propose that you create specific issues for formatting rules that you would like to behave differently. Also, note that, through prettier can be a great reference, the aim of this library is not to match its exact behavior.

I will close this issue, as it is not very actionable, but like I said, feel free to request changes through Github issues : )