Skip to content

Commit 5de1ef7

Browse files
committed
Add Husky
1 parent 091b032 commit 5de1ef7

File tree

2 files changed

+138
-0
lines changed

2 files changed

+138
-0
lines changed

package-lock.json

Lines changed: 135 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
"url": "git://github.com/krismuniz/js-to-json-logic.git"
1010
},
1111
"scripts": {
12+
"pre-commit": "npm test",
13+
"pre-push": "npm test",
1214
"test": "nyc --reporter=html --reporter=text mocha",
1315
"lint": "eslint ."
1416
},
@@ -39,6 +41,7 @@
3941
"eslint-plugin-node": "^11.0.0",
4042
"eslint-plugin-promise": "^4.2.1",
4143
"eslint-plugin-standard": "^4.0.1",
44+
"husky": "^4.2.5",
4245
"mocha": "^8.0.1",
4346
"nyc": "^15.1.0"
4447
}

0 commit comments

Comments
 (0)