localize precommit and prepush

This commit is contained in:
lamebrain 2020-10-06 10:26:36 -07:00
Родитель 56df3137de
Коммит e989464390
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -50,11 +50,11 @@
"test": "node ./out/src/test/runTest.js",
"lint": "eslint . --ext .ts",
"precommit": "pretty-quick --staged --pattern \"**/*.{ts,js,json,yml}\"",
"pre-push": "cd ../.. && yarn run compile && yarn run lint"
"pre-push": "yarn run compile && yarn run lint"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged --pattern \"**/*.{ts,js,json,yml}\"",
"pre-commit": "yarn run precommit",
"pre-push": "yarn run pre-push"
}
},