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 31, 2026, 10:51 PM +0300) commit 5443b902 parent 17fff20c change-id lrlppusn
+21 -11
+21 -11
flake.nix
··· 280 280 excludes = ["**/src/_lex/**"]; 281 281 }; 282 282 283 - # prettier = let 284 - # wrapper = pkgs.runCommandLocal "prettier-wrapper" {nativeBuildInputs = [pkgs.makeWrapper];} '' 285 - # makeWrapper ${pkgs.prettier}/bin/prettier "$out" --add-flags "--plugin=${pkgs.prettier-plugin-go-template}/lib/node_modules/prettier-plugin-go-template/lib/index.js" 286 - # ''; 287 - # in { 288 - # command = wrapper; 289 - # options = ["-w"]; 290 - # includes = ["*.html"]; 291 - # # causes Go template plugin errors: https://github.com/NiklasPor/prettier-plugin-go-template/issues/120 292 - # excludes = ["appview/pages/templates/layouts/repobase.html" "appview/pages/templates/repo/tags.html"]; 293 - # }; 283 + prettier = { 284 + command = pkgs.lib.getExe pkgs.prettier; 285 + options = ["-w"]; 286 + includes = [ 287 + "web/**/*.cjs" 288 + "web/**/*.css" 289 + "web/**/*.html" 290 + "web/**/*.js" 291 + "web/**/*.json" 292 + "web/**/*.json5" 293 + "web/**/*.jsx" 294 + "web/**/*.mdx" 295 + "web/**/*.mjs" 296 + "web/**/*.scss" 297 + "web/**/*.ts" 298 + "web/**/*.tsx" 299 + "web/**/*.vue" 300 + "web/**/*.yaml" 301 + "web/**/*.yml" 302 + ]; 303 + }; 294 304 }; 295 305 }; 296 306