зеркало из https://github.com/microsoft/docs-yaml.git
localize precommit and prepush
This commit is contained in:
Родитель
56df3137de
Коммит
e989464390
|
@ -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"
|
||||
}
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче