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 7ff90c0 commit cdd4513Copy full SHA for cdd4513
.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
@@ -101,7 +101,8 @@
101
},
102
"scripts": {
103
"lint": "xo --fix && remark . -qfo && fixpack",
104
- "prepare": "husky install",
+ "pre-commit": "lint-staged",
105
+ "prepare": "husky",
106
"pretest": "npm run lint",
107
"test": "npm run test-coverage",
108
"test-coverage": "cross-env NODE_ENV=test nyc ava"
0 commit comments