How to add husky to angular

In this article let’s discuss about How to add husky to angular. Let’s go through the following methods without any delay.

Method 1:

"husky": {
    "hooks": {
        "pre-commit": "pretty-quick --staged && ng lint && ng test",
        "pre-push": "ng build --aot true"

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

npm install husky --save-dev

Hope the above solution works.

Realted Posts : Bash get one checksum for many files