Skip to content

Commit aa19959

Browse files
committed
migrate husky to v6
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
1 parent 8012fd1 commit aa19959

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint-staged

package.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"prettier:check": "prettier --check .",
3131
"lerna": "lerna",
3232
"storybook": "yarn workspace storybook start",
33-
"build-storybook": "yarn workspace storybook build-storybook"
33+
"build-storybook": "yarn workspace storybook build-storybook",
34+
"prepare": "husky install"
3435
},
3536
"workspaces": {
3637
"packages": [
@@ -67,11 +68,6 @@
6768
"recursive-readdir": "^2.2.2",
6869
"shx": "^0.3.2"
6970
},
70-
"husky": {
71-
"hooks": {
72-
"pre-commit": "lint-staged"
73-
}
74-
},
7571
"prettier": "@spotify/prettier-config",
7672
"lint-staged": {
7773
"*.{js,jsx,ts,tsx}": [

0 commit comments

Comments
 (0)