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.
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 beforenpm test
andnpm run format:check
passes.Can't comit? check this
Fixing the format error
npm run format
Fixing the lint / test error
Read the error code from
npm test
It require at least git version 2.9