2022-08-28 15:22:43 -04:00
|
|
|
[global]
|
|
|
|
|
excludes = ["./docs/themes/*"]
|
|
|
|
|
|
2022-04-02 15:40:44 -07:00
|
|
|
[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"]
|