Skip to content

Commit

Permalink
Update husky
Browse files Browse the repository at this point in the history
  • Loading branch information
ankittrehan2000 committed Feb 10, 2023
1 parent 4a73715 commit efc8a02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run pre-commit
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-node": "^11.1.0",
"gulp": "^4.0.2",
"husky": "^4.3.8",
"husky": "^8.0.3",
"jasmine": "^4.0.0",
"jasmine-spec-reporter": "^7.0.0",
"jsdoc": "^4.0.0",
Expand All @@ -52,12 +52,9 @@
"prettier": "2.8.4",
"pretty-quick": "^3.1.1"
},
"husky": {
"hooks": {
"pre-commit": "eslint && pretty-quick --staged"
}
},
"scripts": {
"prepare": "husky install",
"pre-commit": "eslint && pretty-quick --staged",
"jsdoc": "jsdoc ./lib -R ./README.md -d doc",
"eslint-fix": "eslint \"./**/*.js\" --fix",
"eslint": "eslint \"./**/*.js\" --cache --quiet",
Expand Down

0 comments on commit efc8a02

Please sign in to comment.