Open siqbal181 opened 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.
npm run lint:fix
It is a extra catch for any errors prior to reaching a PR stage.
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.