# One CLI to format the code tree - https://github.com/numtide/treefmt [formatter.nix] command = "nixfmt" options = [] includes = [ "*.nix" ] excludes = [] [formatter.go] command = "gofmt" options = [] includes = [ "*.go" ] excludes = [] [formatter.shell] command = "shfmt" options = [ "-i", "2", "-ci" ] includes = [ "*.sh" ] excludes = [] [formatter.yaml] command = "yq" options = [ "eval", "-P" ] includes = [ "*.yaml", "*.yml" ] excludes = [] [formatter.json] command = "jq" options = [ "." ] includes = [ "*.json" ] excludes = [] [formatter.toml] command = "tomlfmt" options = [] includes = [ "*.toml" ] excludes = []