mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-13 08:30:05 +01:00
add treefmt
This commit is contained in:
parent
91d1041e06
commit
f5d82afca7
11 changed files with 147 additions and 103 deletions
25
treefmt.toml
Normal file
25
treefmt.toml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
[formatter.nix]
|
||||
command = "alejandra"
|
||||
includes = ["*.nix"]
|
||||
excludes = ["./modules/generated/*"]
|
||||
|
||||
[formatter.prettier]
|
||||
command = "prettier"
|
||||
options = ["--plugin", "prettier-plugin-toml", "--write"]
|
||||
includes = ["*.md", "*.yaml", "*.toml", "*.json"]
|
||||
excludes = []
|
||||
|
||||
[formatter.black]
|
||||
command = "black"
|
||||
includes = ["*.py"]
|
||||
|
||||
[formatter.shell]
|
||||
command = "shfmt"
|
||||
options = [
|
||||
"-i",
|
||||
"2", # indent 2
|
||||
"-s", # simplify the code
|
||||
"-w", # write back to the file
|
||||
|
||||
]
|
||||
includes = ["*.sh", "*.bash"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue