This commit is contained in:
gcch 2026-03-14 13:39:45 +01:00
commit 91d4573bff
14 changed files with 442 additions and 217 deletions

41
cfg/treefmt.toml Normal file
View file

@ -0,0 +1,41 @@
allow-missing-formatter = true
excludes = [".{gitignore,prettierignore}", "*.lock"]
on-unmatched = "info"
verbose = 2
# fail-on-change = true
# -- Formatters --
# dprint
# JSON(C), Markdown
[formatter.dprint]
command = "dprint"
excludes = []
includes = [
"*.fish",
"*.kdl",
"*.md",
"*.rs",
"*.{css,scss}",
"*.{html,twig}",
"*.{js,mjs}",
"*.{json,jsonc}",
"*.{ts,mts,tsx,astro}",
"*.{yaml}"
]
options = ["fmt", "--config", "/home/gcch/.config/dprint/dprint.jsonc"]
priority = 0
[formatter.justfile]
command = "just"
includes = ["justfile"]
options = ["--unstable", "--fmt", "-f"]
priority = 1
# TOML
[formatter.tombi]
command = "tombi"
excludes = []
includes = ["*.toml"]
options = ["format"]
priority = 1