migrate husky to v6

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-05-17 11:26:00 +02:00
parent 8012fd144c
commit aa19959b40
3 changed files with 7 additions and 6 deletions
+1
View File
@@ -0,0 +1 @@
_
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn lint-staged
+2 -6
View File
@@ -30,7 +30,8 @@
"prettier:check": "prettier --check .",
"lerna": "lerna",
"storybook": "yarn workspace storybook start",
"build-storybook": "yarn workspace storybook build-storybook"
"build-storybook": "yarn workspace storybook build-storybook",
"prepare": "husky install"
},
"workspaces": {
"packages": [
@@ -67,11 +68,6 @@
"recursive-readdir": "^2.2.2",
"shx": "^0.3.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"prettier": "@spotify/prettier-config",
"lint-staged": {
"*.{js,jsx,ts,tsx}": [