29
treefmt.nix
29
treefmt.nix
@@ -1,4 +1,4 @@
|
||||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
projectRootFile = "flake.nix";
|
||||
|
||||
@@ -8,12 +8,29 @@
|
||||
strict = true;
|
||||
};
|
||||
|
||||
prettier.enable = true;
|
||||
};
|
||||
taplo.enable = true;
|
||||
|
||||
settings = {
|
||||
global = {
|
||||
excludes = [ ".envrc" ];
|
||||
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