Skip to content

Commit ad98c0b

Browse files
authored
Merge pull request #100 from ConsenSys/add-husky
Force eslint check before commit
2 parents d3f62d6 + b7269e7 commit ad98c0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"scripts": {
2525
"lint": "eslint .",
2626
"lint-fix": "eslint --fix .",
27+
"precommit": "npm run lint",
2728
"pretest": "npm run lint",
2829
"test": "nyc mocha --reporter spec --recursive",
2930
"coverage": "nyc report --reporter=text-lcov | coveralls"
@@ -46,6 +47,7 @@
4647
"eslint-plugin-node": "^8.0.0",
4748
"eslint-plugin-promise": "^4.0.1",
4849
"eslint-plugin-standard": "^4.0.0",
50+
"husky": "^1.3.1",
4951
"mocha": "^5.2.0",
5052
"nock": "^9.6.1",
5153
"nyc": "^13.0.1",

0 commit comments

Comments
 (0)