Loading...
As the project grows larger it's critical for the whole team to follow certain code quality and...
Git hooks are scripts that run automatically every time a particular event occurs in a Git repository.Numerous git hook managers are available for Node.js. Husky, pre-commit, and Lefthook are a few examples of such tools. We opted for Lefthook for this tutorial due to its capability to execute scripts concurrently and its simplicity.So let's start!Before each commit(pre-commit) we need to ensure the following.
npm audit or pnpm audit --audit-level highlefthook install and try making your first commit.