Skip to content

Commit 9f04f9f

Browse files
author
Kent C. Dodds
committed
add validation script and commit hook ✔
1 parent dc285ab commit 9f04f9f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"test": "nyc mocha",
88
"watch:test": "mocha --watch",
9-
"lint": "eslint src"
9+
"lint": "eslint src",
10+
"validate": "npm-run-all --parallel test lint"
1011
},
1112
"repository": {
1213
"type": "git",
@@ -29,7 +30,9 @@
2930
"chai": "3.5.0",
3031
"eslint": "3.2.0",
3132
"eslint-config-kentcdodds": "^9.0.0",
33+
"ghooks": "1.3.2",
3234
"mocha": "3.0.0",
35+
"npm-run-all": "2.3.0",
3336
"nyc": "7.1.0"
3437
},
3538
"nyc": {
@@ -46,5 +49,10 @@
4649
"include": [
4750
"src"
4851
]
52+
},
53+
"config": {
54+
"ghooks": {
55+
"pre-commit": "npm run validate"
56+
}
4957
}
5058
}

0 commit comments

Comments
 (0)