on master help sign in
fix: move husky precommit to separate config
commit5fbc3c113f32e80d73ada17fcce7d235e9209b6f authorMatt Condon (shrugs) <mattgcondon@gmail.com> dateTue 18 Jun 2019, 12:33 (7 years ago) parent1245feb
1 file changed+5−1
package.json+5−1
package.json+5−1
@@ -62,7 +62,6 @@
6262 "lint": "prettier src/**/*.js",
6363 "lint:check": "prettier -c 'src/**/*.js'",
6464 "lint:fix": "prettier --write 'src/**/*.js'",
65− "precommit": "npm-run-all lint:check",
6665 "analyze": "source-map-explorer 'build/static/js/*.js'"
6766 },
6867 "devDependencies": {
@@ -86,5 +85,10 @@
8685 "last 1 firefox version",
8786 "last 1 safari version"
8887 ]
88+ },
89+ "husky": {
90+ "hooks": {
91+ "pre-commit": "npm-run-all lint:check"
92+ }
8993 }
9094}