Run precommit hook automatically

Help to ensure that code is formatted and linted before commits and PRs.

Fix #755
Close #756
Close #754
This commit is contained in:
Maxime Thirouin
2018-01-08 16:48:24 +01:00
committed by Nicolas Gallagher
parent b78206d2f4
commit c26ef0eb3b
3 changed files with 15 additions and 17 deletions
+2 -1
View File
@@ -41,6 +41,7 @@
"eslint-plugin-promise": "^3.6.0",
"eslint-plugin-react": "^7.5.1",
"flow-bin": "^0.61.0",
"husky": "^0.14.3",
"jest": "^21.2.1",
"lerna": "^2.5.1",
"lint-staged": "^4.1.3",
@@ -58,7 +59,7 @@
"**/*.js": [
"fmt:cmd",
"git update-index --again",
"lint:cmd"
"eslint"
]
},
"author": "Nicolas Gallagher",