mirror of
https://github.com/erg-lang/erg.git
synced 2025-07-07 13:15:21 +00:00
add treefmt
This commit is contained in:
parent
443744f564
commit
c3a123cd68
2 changed files with 16 additions and 1 deletions
|
@ -42,8 +42,11 @@
|
|||
gcc
|
||||
rustc
|
||||
cargo
|
||||
rustfmt
|
||||
# Dev
|
||||
treefmt # cli to run all formatters
|
||||
alejandra # Nix formatter
|
||||
# rustfmt # Rust Formatter
|
||||
# taplo-cli # TOML formatter
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
12
treefmt.toml
Normal file
12
treefmt.toml
Normal file
|
@ -0,0 +1,12 @@
|
|||
[formatter.alejandra]
|
||||
command = "alejandra"
|
||||
includes = ["*.nix"]
|
||||
|
||||
# [formatter.taplo]
|
||||
# command = "taplo"
|
||||
# options = ["format"]
|
||||
# includes = ["*.toml"]
|
||||
|
||||
# [formatter.rustfmt]
|
||||
# command = "rustfmt"
|
||||
# includes = ["*.rs"]
|
Loading…
Add table
Add a link
Reference in a new issue