Skip to content

Commit f806b20

Browse files
committed
chore: add a precommit hook for lint and test
1 parent 1a49e02 commit f806b20

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"chai": "^3.5.0",
3737
"eslint": "^3.0.0",
3838
"eslint-config-canonical": "^1.7.12",
39+
"husky": "^0.11.7",
3940
"jsdom": "^9.5.0",
4041
"mocha": "^3.0.2",
4142
"react": "^15.0.0-rc.1",
@@ -46,6 +47,7 @@
4647
"scripts": {
4748
"lint": "eslint ./src ./tests",
4849
"test": "mocha --compilers js:babel-register ./tests/**/*.js",
49-
"build": "babel ./src --out-dir ./dist"
50+
"build": "babel ./src --out-dir ./dist",
51+
"precommit": "npm run lint && npm run test"
5052
}
5153
}

0 commit comments

Comments
 (0)