nix: format Markdown with deno fmt

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Id652cb01903d1ca4de4b8839118fac556a6a6964
This commit is contained in:
raf 2026-03-02 22:25:13 +03:00
commit 13343ef2bd
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -27,6 +27,7 @@
pkgs.alejandra
pkgs.fd
pkgs.prettier
pkgs.deno
pkgs.go # provides gofmt
pkgs.golines
];
@ -38,6 +39,9 @@
# Format HTML & Javascript files with Prettier
fd "$@" -t f -e html -e js -x prettier -w '{}'
# Format Markdown with Deno's Markdown formatter
fd "$@" -t f -e md -x deno fmt -q '{}'
# Format go files with both gofmt & golines
fd "$@" -t f -e go -x golines -l -w --max-len=110 \
--base-formatter=gofmt \