Vanessa082 / in-touch

Stay connected with friends and the latest trends with InTouch, the app for real-time chatting and social updates in one place
Other
0 stars 1 forks source link

[Feature] Configure`pre-commit` hooks with `husky` and execute the `format` script with `lint-stage` #13

Open RashJrEdmund opened 3 weeks ago

RashJrEdmund commented 3 weeks ago

Just as the name implies, a pre-commit hook is simple a function that is executed prio to a git commit action.

Husky helps us by providing ways we could execute pre-commit hooks

coupled with lint-stage which let's us run linters against staged git files and don't let 💩 slip into your code base!

The impotance of this is that we can execute code format scripts, run tests and be sure everything works well before we write commits and later push to our code registory (eg Github)