We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de45a42 commit 0ab4ccdCopy full SHA for 0ab4ccd
.huskyrc
@@ -1,6 +1,6 @@
1
{
2
"hooks": {
3
- "pre-commit": "yarn validate",
+ "pre-commit": "lint-staged",
4
"commit-msg": "npx commitlint -E HUSKY_GIT_PARAMS"
5
}
6
.lintstagedrc
@@ -0,0 +1,7 @@
+linters:
+ "*.js":
+ - yarn validate
+ - yarn build
+ - git add
+ignore:
7
+ - src/**/*.joi.js
package.json
@@ -98,6 +98,7 @@
98
"cz-conventional-changelog": "2.1.0",
99
"faker": "^4.1.0",
100
"husky": "^1.3.1",
101
+ "lint-staged": "^8.1.5",
102
"mocha": "^5.0.5",
103
"mocha-lcov-reporter": "^1.3.0",
104
"npm-watch": "^0.3.0",
0 commit comments