chore: ajoute le hook husky pre-commit canonique (manquant)

This commit is contained in:
2026-05-28 21:30:38 +02:00
parent 45f6568912
commit e16eeaf411
+13
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