I'm trying to add precommit-hook to my project, this is my script section on package.json:
"scripts": {
...
"lint": "npm run lint:sass && npm run lint:js",
"lint:js": "ng lint",
"lint:sass": "sass-lint src/**/*.scss -v -q"
}...
"pre-commit": [
"lint"
],
If I only execute this line:
npm run lint:sass && npm run lint:js
Everything works great, but when I'm trying to add precommit my terminal just freeze on:
git commit -m "Testing"
running lint...