Skip to content

Commit cdd4513

Browse files
committed
fix: fixed husky and pre-commit
1 parent 7ff90c0 commit cdd4513

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

.husky/commit-msg

Lines changed: 0 additions & 4 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
npx --no-install lint-staged && npm test
1+
npm run pre-commit

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@
101101
},
102102
"scripts": {
103103
"lint": "xo --fix && remark . -qfo && fixpack",
104-
"prepare": "husky install",
104+
"pre-commit": "lint-staged",
105+
"prepare": "husky",
105106
"pretest": "npm run lint",
106107
"test": "npm run test-coverage",
107108
"test-coverage": "cross-env NODE_ENV=test nyc ava"

0 commit comments

Comments
 (0)