From 1429eaf34f3923c1baa99ed84d1176144a847b2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sun, 10 Nov 2024 16:08:21 +0100 Subject: [PATCH] make: Add fmt target --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 15c7da7..b3f4190 100644 --- a/Makefile +++ b/Makefile @@ -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