Ionic 2 Prepush

Does anyone know how to add pre-commit with linting ? or should I use hooks ? would love to know how…
“scripts”: {
“prepush”: “npm run lint”

I want to force tslint before commiting and pushing to github

We use git hooks.

Thanks @alexthebuilder I also noticed ionic have a hooks folder … Not sure if I should be using that one ? I’m not sure how to use it