Permalink
Browse files

add precommit hook

  • Loading branch information...
XadillaX committed Nov 24, 2015
1 parent 9af749e commit b855545c1b257181403a3281cb9d515f125bfb19
Showing with 12 additions and 2 deletions.
  1. +1 −0 .jshintignore
  2. +11 −2 package.json
@@ -0,0 +1 @@
node_modules
@@ -22,11 +22,15 @@
"cliparoo": "^1.0.0",
"coveralls": "^2.11.2",
"istanbul": "^0.3.5",
"jsxhint": "^0.15.1",
"mocha": "^2.0.1",
"precommit-hook": "^3.0.0",
"should": "^4.3.0"
},
"scripts": {
"test": "make test"
"test": "make test",
"lint": "./node_modules/.bin/jsxhint .",
"validate": "npm ls"
},
"repository": {
"type": "git",
@@ -46,5 +50,10 @@
"bugs": {
"url": "https://github.com/XadillaX/Toshihiko/issues"
},
"homepage": "https://github.com/XadillaX/Toshihiko"
"homepage": "https://github.com/XadillaX/Toshihiko",
"pre-commit": [
"lint",
"validate",
"test"
]
}

0 comments on commit b855545

Please sign in to comment.