Pensano-dev / aura-mobile-app

4 stars 0 forks source link

chore: pre-commit hooks #79

Open siqbal181 opened 6 months ago

siqbal181 commented 6 months ago

Pre commit hooks allow us to run scripts when the changes are in staging.

I have set up husky: https://typicode.github.io/husky/get-started.html

I have configured it so that when someone tries to commit on either FE or BE, the npm run lint:fix will run and so you can see the failures and prettier will also run.

It is a extra catch for any errors prior to reaching a PR stage.