Update husky hooks (no code change)

This commit is contained in:
ankittre2000 2023-02-10 13:28:20 -05:00
parent a95bd2f64e
commit 6515bce9b9
2 changed files with 8 additions and 2 deletions

4
.husky/pre-commit Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npm run pre-commit

View File

@ -42,7 +42,7 @@
"eslint-config-prettier": "^8.3.0", "eslint-config-prettier": "^8.3.0",
"eslint-plugin-node": "^11.1.0", "eslint-plugin-node": "^11.1.0",
"gulp": "^4.0.2", "gulp": "^4.0.2",
"husky": "^4.3.8", "husky": "^8.0.3",
"jasmine": "^4.5.0", "jasmine": "^4.5.0",
"jasmine-spec-reporter": "^7.0.0", "jasmine-spec-reporter": "^7.0.0",
"jsdoc": "^4.0.0", "jsdoc": "^4.0.0",
@ -53,10 +53,12 @@
}, },
"husky": { "husky": {
"hooks": { "hooks": {
"pre-commit": "eslint && pretty-quick --staged"
} }
}, },
"scripts": { "scripts": {
"prepare": "husky install",
"pre-commit": "eslint && pretty-quick --staged",
"jsdoc": "jsdoc ./lib -R ./README.md -d doc", "jsdoc": "jsdoc ./lib -R ./README.md -d doc",
"eslint": "eslint \"./**/*.js\" --cache --quiet", "eslint": "eslint \"./**/*.js\" --cache --quiet",
"test": "gulp test", "test": "gulp test",