Skip to content

Commit

Permalink
chore: git hook config
Browse files Browse the repository at this point in the history
  • Loading branch information
69pmb committed Feb 15, 2024
1 parent aa89027 commit b7689fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .husky/pre-commit
@@ -1,4 +1,10 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

if [[ ! $(git config --get user.email) =~ .*gmail.* ]]; then
echo "Use project gitconfig before commit"
echo "For this, run the following command: 'git config include.path "../.gitconfig"'"
exit 1
fi

pnpm -s dlx lint-staged -q --concurrent false

0 comments on commit b7689fa

Please sign in to comment.