msd-d / PetHub

An app for animal adoption.
1 stars 0 forks source link

Add pre-commit hook for the project #19

Closed kepet19 closed 2 years ago

kepet19 commented 2 years ago

Pr add pre-coomit hook

This makes sure we don't commit whoops I forgot to format and check for npm test. the pre-commit hooks can be skipped with: git commit --no-verify -m "Add message" if need. the hooks get installed with npm install, so there is no change in your workflow. The only thing that is different is: you can't commit before npm test and npm run format:check passes.

Can't comit? check this

Fixing the format error

Fixing the lint / test error

It require at least git version 2.9