Automatically format when submitting

This commit is contained in:
Tw93
2025-08-14 15:10:54 +08:00
parent 6b2e64fdac
commit 8313d9142b
3 changed files with 8 additions and 0 deletions

4
.githooks/setup.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
git config core.hooksPath .githooks
chmod +x .githooks/*
git config alias.add '!f() { npm run format && git add "$@"; }; f'