From 76cc72326bcd80f643ff0a9aaf06756a1a46b131 Mon Sep 17 00:00:00 2001 From: Maxime Brunet Date: Wed, 2 Aug 2023 18:58:17 -0700 Subject: [PATCH] feat: add d2-fmt pre-commit hook --- .pre-commit-hooks.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .pre-commit-hooks.yaml diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 000000000..1a626eae2 --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,6 @@ +- id: d2-fmt + name: d2 fmt + description: Format d2 files + entry: d2 fmt + language: golang + files: \.d2$