add husky pre push hook

This commit is contained in:
akirilyuk
2022-02-14 14:22:04 +01:00
parent d79c733aa2
commit b126719ba7
3 changed files with 26 additions and 0 deletions

3
.husky/pre-push Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run jslint

22
package-lock.json generated
View File

@@ -39,6 +39,7 @@
"clear-module": "^4.1.1", "clear-module": "^4.1.1",
"eslint": "^7.20.0", "eslint": "^7.20.0",
"eslint-plugin-promise": "^4.3.1", "eslint-plugin-promise": "^4.3.1",
"husky": "^7.0.4",
"nyc": "^15.1.0", "nyc": "^15.1.0",
"tape": "^5.2.2" "tape": "^5.2.2"
}, },
@@ -2758,6 +2759,21 @@
"node": ">= 6" "node": ">= 6"
} }
}, },
"node_modules/husky": {
"version": "7.0.4",
"resolved": "https://registry.npmjs.org/husky/-/husky-7.0.4.tgz",
"integrity": "sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ==",
"dev": true,
"bin": {
"husky": "lib/bin.js"
},
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://github.com/sponsors/typicode"
}
},
"node_modules/iconv-lite": { "node_modules/iconv-lite": {
"version": "0.4.24", "version": "0.4.24",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
@@ -7658,6 +7674,12 @@
"debug": "4" "debug": "4"
} }
}, },
"husky": {
"version": "7.0.4",
"resolved": "https://registry.npmjs.org/husky/-/husky-7.0.4.tgz",
"integrity": "sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ==",
"dev": true
},
"iconv-lite": { "iconv-lite": {
"version": "0.4.24", "version": "0.4.24",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",

View File

@@ -56,6 +56,7 @@
"clear-module": "^4.1.1", "clear-module": "^4.1.1",
"eslint": "^7.20.0", "eslint": "^7.20.0",
"eslint-plugin-promise": "^4.3.1", "eslint-plugin-promise": "^4.3.1",
"husky": "7.0.4",
"nyc": "^15.1.0", "nyc": "^15.1.0",
"tape": "^5.2.2" "tape": "^5.2.2"
} }