Skip to content

Commit

Permalink
chore: updated husky
Browse files Browse the repository at this point in the history
  • Loading branch information
lquixada committed Mar 21, 2021
1 parent 0cf8dce commit e74d817
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

make
14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
"standard --fix"
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint --edit $1",
"pre-commit": "lint-staged",
"pre-push": "make"
}
},
"standard": {
"env": [
"mocha",
Expand Down Expand Up @@ -83,7 +76,7 @@
"codecov": "3.8.1",
"cz-conventional-changelog": "3.3.0",
"express": "4.17.1",
"husky": "4.3.8",
"husky": "5.2.0",
"lint-staged": "10.5.4",
"mocha": "8.3.2",
"mocha-headless-chrome": "3.1.0",
Expand Down Expand Up @@ -127,5 +120,8 @@
"whatwg",
"xhr",
"ajax"
]
],
"scripts": {
"prepare": "husky install"
}
}

0 comments on commit e74d817

Please sign in to comment.