-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtreefmt.toml
More file actions
74 lines (66 loc) · 2.38 KB
/
Copy pathtreefmt.toml
File metadata and controls
74 lines (66 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# The formatter multiplexer - https://github.com/numtide/treefmt
# Do not exit with error if a configured formatter is missing
# Env $TREEFMT_ALLOW_MISSING_FORMATTER
allow-missing-formatter = true
# The file into which a cpu profile will be written
# Env $TREEFMT_CPU_PROFILE
# cpu-profile = ./cpu.pprof
# Exclude files or directories matching the specified globs
# Env $TREEFMT_EXCLUDES
excludes = [".jj/*", "dist/*", ".git/*"]
# Exit with error if any changes were made during execution
# Useful for CI
# Env $TREEFMT_FAIL_ON_CHANGE
fail-on-change = true
# A list of formatters to apply
# Defaults to all configured formatters
# Env $TREEFMT_FORMATTERS
formatters = ["biome", "oxfmt", "rumdl"]
# Log paths that did not match any formatters at the specified log level
# Possible values are <debug|info|warn|error|fatal>
# Env $TREEFMT_ON_UNMATCHED
# on-unmatched = "info"
# 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.
# Env $TREEFMT_TREE_ROOT
# tree-root = "/tmp/foo"
# File to search for to find the tree root (if tree-root is not set)
# Env $TREEFMT_TREE_ROOT_FILE
# tree-root-file = ".git/config"
# 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 '"'
# Env $TREEFMT_TREE_ROOT_CMD
# tree-root-cmd = "git rev-parse --show-toplevel"
# Set the verbosity of logs
# 0 = warn, 1 = info, 2 = debug
# Env $TREEFMT_VERBOSE
# verbose = 2
# The method used to traverse the files within the tree root
# Currently, we support 'auto', 'git', 'jujutsu', or 'filesystem'
# Env $TREEFMT_WALK
# walk = "filesystem"
[formatter.oxfmt]
# Command to execute
command = "oxfmt"
# Command-line arguments for the command
options = []
# Glob pattern of files to include
includes = ["*.ts"]
# Glob patterns of files to exclude
excludes = ["dist/*"]
# Controls the order of application when multiple formatters match the same file
# Lower the number, the higher the precedence
# Default is 0
priority = 0
[formatter.rumdl]
command = "rumdl"
options = ["fmt"]
includes = ["*.md"]
excludes = [".changeset/*"]
priority = 0
[formatter.biome]
command = "biome"
options = ["check", "--fix"]
includes = ["*.json", "*.jsonc"]
excludes = [".zed/*"]