36
treefmt.nix
Executable file
36
treefmt.nix
Executable file
@@ -0,0 +1,36 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
projectRootFile = "flake.nix";
|
||||
|
||||
programs = {
|
||||
nixfmt = {
|
||||
enable = true;
|
||||
strict = true;
|
||||
};
|
||||
|
||||
taplo.enable = true;
|
||||
|
||||
prettier = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
plugins = [
|
||||
"${pkgs.prettier-plugin-go-template}/lib/node_modules/prettier-plugin-go-template/lib/index.js"
|
||||
];
|
||||
|
||||
overrides = [
|
||||
{
|
||||
files = [ "*.html" ];
|
||||
options.parser = "go-template";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
settings.global.excludes = [
|
||||
".envrc"
|
||||
"public/**"
|
||||
"static/**"
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user