This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

nix: add prettier to treefmt for ./web

Signed-off-by: dawn <dawn@tangled.org>

author
dawn
date (Jul 27, 2026, 4:41 PM +0300) commit 443942ec parent 98fdc4b6 change-id lrlppusn
+21 -11
+21 -11
flake.nix
··· 268 268 excludes = ["**/src/_lex/**"]; 269 269 }; 270 270 271 - # prettier = let 272 - # wrapper = pkgs.runCommandLocal "prettier-wrapper" {nativeBuildInputs = [pkgs.makeWrapper];} '' 273 - # makeWrapper ${pkgs.prettier}/bin/prettier "$out" --add-flags "--plugin=${pkgs.prettier-plugin-go-template}/lib/node_modules/prettier-plugin-go-template/lib/index.js" 274 - # ''; 275 - # in { 276 - # command = wrapper; 277 - # options = ["-w"]; 278 - # includes = ["*.html"]; 279 - # # causes Go template plugin errors: https://github.com/NiklasPor/prettier-plugin-go-template/issues/120 280 - # excludes = ["appview/pages/templates/layouts/repobase.html" "appview/pages/templates/repo/tags.html"]; 281 - # }; 271 + prettier = { 272 + command = pkgs.lib.getExe pkgs.prettier; 273 + options = ["-w"]; 274 + includes = [ 275 + "web/**/*.cjs" 276 + "web/**/*.css" 277 + "web/**/*.html" 278 + "web/**/*.js" 279 + "web/**/*.json" 280 + "web/**/*.json5" 281 + "web/**/*.jsx" 282 + "web/**/*.mdx" 283 + "web/**/*.mjs" 284 + "web/**/*.scss" 285 + "web/**/*.ts" 286 + "web/**/*.tsx" 287 + "web/**/*.vue" 288 + "web/**/*.yaml" 289 + "web/**/*.yml" 290 + ]; 291 + }; 282 292 }; 283 293 }; 284 294