nix: format Markdown with deno fmt
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Id652cb01903d1ca4de4b8839118fac556a6a6964
This commit is contained in:
parent
3363e5c923
commit
13343ef2bd
1 changed files with 4 additions and 0 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue