Skip to content

Commit

Permalink
chore(test): Add precommit-hook
Browse files Browse the repository at this point in the history
This was never set up, and thus we have not been linting code in this
repository.

Fixes #311
  • Loading branch information
orangejulius committed Dec 3, 2018
1 parent 666cc16 commit 8ced5e2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"drop_index": "node scripts/drop_index",
"reset_type": "node scripts/reset_type",
"update_settings": "node scripts/update_settings",
"travis": "npm run test && npm run integration"
"travis": "npm run test && npm run integration",
"lint": "jshint .",
"validate": "npm ls"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -41,11 +43,17 @@
"devDependencies": {
"difflet": "^1.0.1",
"elastictest": "^2.0.0",
"precommit-hook": "^3.0.0",
"proxyquire": "^2.0.0",
"tap-spec": "^5.0.0",
"tape": "^4.5.0"
},
"pre-commit": [],
"pre-commit": [
"lint",
"prune",
"validate",
"test"
],
"release": {
"branch": "master",
"success": []
Expand Down

0 comments on commit 8ced5e2

Please sign in to comment.