mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-12 03:19:00 +00:00
Add formatter for codebase
This commit is contained in:
parent
d54fd4bc4d
commit
0be49e8295
@ -24,5 +24,6 @@
|
|||||||
in {
|
in {
|
||||||
devShells.default = import ./shell.nix { inherit pkgs; };
|
devShells.default = import ./shell.nix { inherit pkgs; };
|
||||||
|
|
||||||
|
formatter = pkgs.treefmt;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
24
treefmt.toml
Normal file
24
treefmt.toml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
[formatter.nix]
|
||||||
|
command = "nixpkgs-fmt"
|
||||||
|
includes = ["*.nix"]
|
||||||
|
|
||||||
|
[formatter.ruby]
|
||||||
|
command = "rufo"
|
||||||
|
options = ["-x"]
|
||||||
|
includes = ["*.rb"]
|
||||||
|
|
||||||
|
[formatter.web]
|
||||||
|
command = "prettier"
|
||||||
|
options = ["--write"]
|
||||||
|
includes = [
|
||||||
|
"*.css",
|
||||||
|
"*.html",
|
||||||
|
"*.js",
|
||||||
|
"*.json",
|
||||||
|
"*.jsx",
|
||||||
|
"*.md",
|
||||||
|
"*.mdx",
|
||||||
|
"*.scss",
|
||||||
|
"*.ts",
|
||||||
|
"*.yaml",
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user