chore(fmt): add treefmt and run it

This commit is contained in:
Timothy DeHerrera
2026-01-24 18:49:51 -07:00
parent f4201e95ba
commit 8df37127a1
18 changed files with 290 additions and 267 deletions

28
treefmt.toml Normal file
View File

@@ -0,0 +1,28 @@
[formatter.nixfmt]
command = "nixfmt"
excludes = ["build/Cargo.nix"]
includes = ["*.nix"]
options = []
[formatter.shfmt]
command = "shfmt"
excludes = []
includes = ["*.sh", ".envrc"]
options = []
[formatter.taplo]
command = "taplo"
excludes = []
includes = ["*.toml", ".cargo/config.toml"]
options = ["fmt", "-o", "align_entries=true", "-o", "reorder_keys=true"]
[formatter.prettier]
command = "prettier"
excludes = ["*/sources.json"]
includes = ["*.json", "*.md", "*.yaml", "*.yml"]
options = ["--write"]
[formatter.rustfmt]
command = "rustfmt"
excludes = []
includes = ["*.rs"]