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 23, 2026, 6:48 PM +0300) commit 8647e51a parent f180cae5 change-id xvzqrlqs
+21 -11
+21 -11
flake.nix
··· 266 266 excludes = ["**/src/_lex/**"]; 267 267 }; 268 268 269 - # prettier = let 270 - # wrapper = pkgs.runCommandLocal "prettier-wrapper" {nativeBuildInputs = [pkgs.makeWrapper];} '' 271 - # makeWrapper ${pkgs.prettier}/bin/prettier "$out" --add-flags "--plugin=${pkgs.prettier-plugin-go-template}/lib/node_modules/prettier-plugin-go-template/lib/index.js" 272 - # ''; 273 - # in { 274 - # command = wrapper; 275 - # options = ["-w"]; 276 - # includes = ["*.html"]; 277 - # # causes Go template plugin errors: https://github.com/NiklasPor/prettier-plugin-go-template/issues/120 278 - # excludes = ["appview/pages/templates/layouts/repobase.html" "appview/pages/templates/repo/tags.html"]; 279 - # }; 269 + prettier = { 270 + command = pkgs.lib.getExe pkgs.prettier; 271 + options = ["-w"]; 272 + includes = [ 273 + "web/**/*.cjs" 274 + "web/**/*.css" 275 + "web/**/*.html" 276 + "web/**/*.js" 277 + "web/**/*.json" 278 + "web/**/*.json5" 279 + "web/**/*.jsx" 280 + "web/**/*.mdx" 281 + "web/**/*.mjs" 282 + "web/**/*.scss" 283 + "web/**/*.ts" 284 + "web/**/*.tsx" 285 + "web/**/*.vue" 286 + "web/**/*.yaml" 287 + "web/**/*.yml" 288 + ]; 289 + }; 280 290 }; 281 291 }; 282 292