make: Add fmt target

This commit is contained in:
2024-11-10 16:08:21 +01:00
parent 4ec1268b2e
commit 1429eaf34f

View File

@@ -34,3 +34,8 @@ dotfiles:
.PHONY: test
test:
./test-in-docker.sh
.PHONY: fmt
fmt:
git ls-files -z '*.md' | xargs -0 prettier --print-width 80 --prose-wrap always --write
git ls-files -z '*.toml' | xargs -0 taplo format