Skip to content

Commit

Permalink
chore: update husky to v4 and configure hooks (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgoldrbx authored Feb 26, 2020
1 parent 030692c commit 7f3c038
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"coverage": "nyc --reporter=lcov --require @babel/register mocha ${TEST_FILES:-test/src/index.spec.js}",
"lint": "eslint --ext .js -c .eslintrc .",
"prebuild": "rm -rf lib",
"precommit": "npm run lint",
"prepublishOnly": "npm run build",
"prepush": "npm test",
"pretest": "npm run lint",
"test": "NODE_ENV=test nyc mocha",
"tdd": "NODE_ENV=test nyc mocha --watch --break"
Expand Down Expand Up @@ -40,12 +38,18 @@
"babel-plugin-rewire": "^1.2.0",
"chai": "^3.5.0",
"eslint": "^2.10.1",
"husky": "^0.11.4",
"husky": "^4.2.3",
"mocha": "^2.4.5",
"nyc": "^6.4.4",
"react": "^16.2.0",
"sinon": "^9.0.0"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint",
"pre-push": "npm test"
}
},
"nyc": {
"require": [
"@babel/register"
Expand Down

0 comments on commit 7f3c038

Please sign in to comment.