Treefmt
Treefmt configuration file
| 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
Properties
Do not exit with error if a configured formatter is missing
The file into which a cpu profile will be written
Exclude files or directories matching the specified globs
Exit with error if any changes were made during execution; useful for CI
A list of formatters to apply. Defaults to all configured formatters
Log paths that did not match any formatters at the specified log level
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.
File to search for to find the tree root (if tree-root is not set)
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 '"'
Set the verbosity of logs (0 = warn, 1 = info, 2 = debug)
The method used to traverse the files within the tree root