Simple integration of Husky for pre-commit hooks, linting, and formatting. Showcased in a simple Angular project.
npm install --save-dev husky
npx husky install
npx husky add .husky/pre-commit "npm run lint"
When trying to commit, the pre-commit hook will build, test and lint the code. If there are any errors, the commit will be aborted.