From acff01ecb340ced1ece567ee4e81de3af265c588 Mon Sep 17 00:00:00 2001 From: Winter Date: Sun, 17 Aug 2025 01:24:47 -0400 Subject: [PATCH] treefmt: don't format html for now Causes too many regressions, unfortunately: - https://discord.com/channels/1361963801993285692/1361991850327674932/1406398439830323292 - https://discord.com/channels/1361963801993285692/1361991850327674932/1406401591627747519 Ideally, our templates wouldn't be whitespace-sensitive (example #1), but let's stop the bleeding while we figure it out. Signed-off-by: Winter --- flake.nix | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/flake.nix b/flake.nix index acd92bd8..332d7917 100644 --- a/flake.nix +++ b/flake.nix @@ -120,17 +120,17 @@ includes = ["*.go"]; }; - prettier = let - wrapper = pkgs.runCommandLocal "prettier-wrapper" {nativeBuildInputs = [pkgs.makeWrapper];} '' - makeWrapper ${pkgs.prettier}/bin/prettier "$out" --add-flags "--plugin=${pkgs.prettier-plugin-go-template}/lib/node_modules/prettier-plugin-go-template/lib/index.js" - ''; - in { - command = wrapper; - options = ["-w"]; - includes = ["*.html"]; - # causes Go template plugin errors: https://github.com/NiklasPor/prettier-plugin-go-template/issues/120 - excludes = ["appview/pages/templates/layouts/repobase.html" "appview/pages/templates/repo/tags.html"]; - }; + # prettier = let + # wrapper = pkgs.runCommandLocal "prettier-wrapper" {nativeBuildInputs = [pkgs.makeWrapper];} '' + # makeWrapper ${pkgs.prettier}/bin/prettier "$out" --add-flags "--plugin=${pkgs.prettier-plugin-go-template}/lib/node_modules/prettier-plugin-go-template/lib/index.js" + # ''; + # in { + # command = wrapper; + # options = ["-w"]; + # includes = ["*.html"]; + # # causes Go template plugin errors: https://github.com/NiklasPor/prettier-plugin-go-template/issues/120 + # excludes = ["appview/pages/templates/layouts/repobase.html" "appview/pages/templates/repo/tags.html"]; + # }; }; }; }); -- 2.51.2