We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc35c33 commit 2ec621bCopy full SHA for 2ec621b
.husky/commit-msg
.husky/pre-commit
@@ -1,4 +1 @@
1
-#!/bin/sh
2
-. "$(dirname "$0")/_/husky.sh"
3
-
4
-npx --no-install lint-staged && npm test
+npm run pre-commit
package.json
@@ -78,7 +78,8 @@
78
},
79
"scripts": {
80
"lint": "xo --fix && remark . -qfo && fixpack",
81
- "prepare": "husky install",
+ "pre-commit": "lint-staged",
82
+ "prepare": "husky",
83
"pretest": "npm run lint",
84
"test": "cross-env NODE_ENV=test nyc ava"
85
}
0 commit comments