This commit is contained in:
2026-04-06 11:09:46 +02:00
parent 71a054b964
commit 31fa528fe2
9 changed files with 490 additions and 1 deletions

13
.husky/pre-commit Executable file
View File

@@ -0,0 +1,13 @@
# prevent commits on master
branch="$(git rev-parse --abbrev-ref HEAD)"
if [ "$branch" = "master" ]; then
echo ""
echo "You can't commit directly to master branch"
echo "please create a pull request"
echo ""
exit 1
fi
# run linters
npx lint-staged