Skip to content

Commit 4257e45

Browse files
committed
chore(test): Add precommit-hook
This was never set up, and thus we have not been linting code in this repository. Fixes #311
1 parent 3d13a37 commit 4257e45

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

package.json

+10-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
"drop_index": "node scripts/drop_index",
1414
"reset_type": "node scripts/reset_type",
1515
"update_settings": "node scripts/update_settings",
16-
"travis": "npm run test && npm run integration"
16+
"travis": "npm run test && npm run integration",
17+
"lint": "jshint .",
18+
"validate": "npm ls"
1719
},
1820
"repository": {
1921
"type": "git",
@@ -43,11 +45,17 @@
4345
"devDependencies": {
4446
"difflet": "^1.0.1",
4547
"elastictest": "^2.0.0",
48+
"precommit-hook": "^3.0.0",
4649
"proxyquire": "^2.0.0",
4750
"tap-spec": "^5.0.0",
4851
"tape": "^4.5.0"
4952
},
50-
"pre-commit": [],
53+
"pre-commit": [
54+
"lint",
55+
"prune",
56+
"validate",
57+
"test"
58+
],
5159
"release": {
5260
"branch": "master",
5361
"success": []

0 commit comments

Comments
 (0)