initial version (alpha)
This commit is contained in:
commit
d16d7a128f
57 changed files with 11087 additions and 0 deletions
21
.githooks/pre-commit
Executable file
21
.githooks/pre-commit
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
|
||||
clear
|
||||
|
||||
echo "Running Biome format..."
|
||||
bunx @biomejs/biome format --write
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "❌ Biome format failed. Commit rejected."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Running Biome check on staged files..."
|
||||
bunx @biomejs/biome check --staged --error-on-warnings --no-errors-on-unmatched
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "✅ All checks passed. Proceeding with commit."
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue