Skip to content

Commit

Permalink
chore: migrate husky to v7
Browse files Browse the repository at this point in the history
  • Loading branch information
Poltergeist authored and robertkowalski committed Apr 6, 2022
1 parent 4615068 commit dfad8b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
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 -e $HUSKY_GIT_PARAMS
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
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"release:rollback": "yarn is-release-bot-commit && git reset --hard HEAD^",
"release:create-nightly": "yarn release premajor --conventional-prerelease --preid nightly",
"release:rc": "yarn release --conventional-prerelease --preid rc",
"release:graduate": "yarn release --conventional-graduate"
"release:graduate": "yarn release --conventional-graduate",
"prepare": "husky install"
},
"canarist": {
"projects": [
Expand Down Expand Up @@ -67,12 +68,6 @@
}
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,json,css}": [
"prettier --list-different"
Expand Down

0 comments on commit dfad8b4

Please sign in to comment.