add githooks and setup.sh
This commit is contained in:
12
githooks/pre-commit
Executable file
12
githooks/pre-commit
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "Running pre-commit hooks..."
|
||||
|
||||
biome check --write
|
||||
biome lint --write
|
||||
|
||||
if git diff --quiet; then
|
||||
exit 0
|
||||
else
|
||||
git add -u
|
||||
fi
|
||||
Reference in New Issue
Block a user