juspay / omnix

🚧 A Nix companion to improve developer experience
https://omnix.page
GNU Affero General Public License v3.0
108 stars 10 forks source link

Add leptosfmt #25

Closed srid closed 1 year ago

srid commented 1 year ago

Running just fmt should also use https://github.com/bram209/leptosfmt to format the view! macros.

Doing this will require first upstreaming leptosfmt to nixpkgs: https://github.com/NixOS/nixpkgs/issues/248032

srid commented 1 year ago

@divinenaman @1vipulgupta - one of you can take this.

srid commented 1 year ago

leptosfmt is now in nixpkgs, track it here: https://nixpk.gs/pr-tracker.html?pr=248148

srid commented 1 year ago

I went ahead and did this in 9095283f4aaec57c50c0ff7cfe63db2b4acbe36f

But if anybody would like to do this TODO:

https://github.com/juspay/nix-browser/blob/9095283f4aaec57c50c0ff7cfe63db2b4acbe36f/justfile#L7-L8

Feel free to take up https://github.com/numtide/treefmt-nix/issues/106