Skip to content

Commit d60e5fa

Browse files
1 parent 9a7c76e commit d60e5fa

File tree

3 files changed

+11
-254
lines changed

3 files changed

+11
-254
lines changed

.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 pretty-quick --staged

package.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"format": "prettier --write \"**/*.md\"",
2424
"format:check": "prettier --check \"**/*.md\"",
2525
"postinstall": "cd website && yarn",
26+
"prepare": "husky install",
2627
"start": "yarn --cwd website start",
2728
"build": "yarn --cwd website build"
2829
},
@@ -32,13 +33,8 @@
3233
"yargs": "^17.5.1"
3334
},
3435
"devDependencies": {
35-
"husky": "^4.2.5",
36+
"husky": "^7.0.0",
3637
"prettier": "^2.6.2",
3738
"pretty-quick": "^3.1.3"
38-
},
39-
"husky": {
40-
"hooks": {
41-
"pre-commit": "pretty-quick --staged"
42-
}
4339
}
4440
}

0 commit comments

Comments
 (0)