how to add husky to angular

C++
"husky": {
    "hooks": {
        "pre-commit": "pretty-quick --staged && ng lint && ng test",
        "pre-push": "ng build --aot true"
    }
}npm install husky --save-dev
Source

Also in C++: