diff options
Diffstat (limited to 'treefmt.nix')
-rw-r--r-- | treefmt.nix | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/treefmt.nix b/treefmt.nix index 1716d457c..61fcdf6df 100644 --- a/treefmt.nix +++ b/treefmt.nix @@ -42,11 +42,8 @@ strict = true; }; - # this is disabled due to `//webui` not yet being integrated with the flake. - # the entire package directory is ignored below in - # `settings.global.excludes`. prettier = { - enable = false; + enable = true; settings = { singleQuote = true; @@ -79,8 +76,17 @@ "doc/man/*.1" # generated via //doc:generate.go "doc/md/*" # generated via //doc:generate.go "misc/completion/*/*" - "webui/*" # not currently supported, //webui is not yet flakeified "Makefile" ] ++ excludes; + + settings.formatter = { + prettier = { + excludes = [ + "*.md" + "*.yaml" + "*.yml" + ]; + }; + }; } |