Husky and Git Hooks to make sure your code is clean, formatted and no-eslint error.
Whenever we writing any javascript, typescript app or working in a team of developers , We want to keep our code clean, formatted , buildable or any other action we want to happen before code is committed and pushed, husky and Git Hooks are there for help you.
With the help of Husky and Git hooks we can run certain command and scripts at time of committing, pushing source in repo.
What are Git hooks?
Git hooks are scripts that Git executes before or after events such as: commit, push, and receive. Git hooks are a built-in feature — no need to download anything. Git hooks are run locally.
There are various hooks provided by git . some of them are