Type object
File match treefmt.toml
Schema URL https://catalog.lintel.tools/schemas/schemastore/treefmt/latest.json
Source https://www.schemastore.org/treefmt.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Properties

allow-missing-formatter boolean

Do not exit with error if a configured formatter is missing

Default: false
cpu-profile string

The file into which a cpu profile will be written

excludes string[]

Exclude files or directories matching the specified globs

fail-on-change boolean

Exit with error if any changes were made during execution; useful for CI

formatters string[]

A list of formatters to apply. Defaults to all configured formatters

on-unmatched string

Log paths that did not match any formatters at the specified log level

Values: "debug" "info" "warn" "error" "fatal"
tree-root string

The root directory from which treefmt will start walking the filesystem. Defaults to the root of the current git worktree. If not in a git repo, defaults to the directory containing the config file.

tree-root-file string

File to search for to find the tree root (if tree-root is not set)

tree-root-cmd string

Command to run to find the tree root. It is parsed using shlex, to allow quoting arguments that contain whitespace. If you wish to pass arguments containing quotes, you should use nested quotes e.g. "'" or '"'

verbose integer

Set the verbosity of logs (0 = warn, 1 = info, 2 = debug)

min=0max=2
walk string

The method used to traverse the files within the tree root

Values: "auto" "git" "filesystem"
formatter object