Skip to content

Commit

Permalink
Adds lint and test pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
carymcpoland committed Oct 25, 2017
1 parent 509e2a2 commit 207ca7c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,18 @@
"extract-text-webpack-plugin": "^3.0.0",
"html-loader": "^0.5.1",
"html-webpack-plugin": "^2.30.1",
"husky": "^0.14.3",
"isomorphic-fetch": "^2.2.1",
"istanbul": "^0.4.5",
"jsdom": "^9.12.0",
"less": "^2.7.2",
"less-loader": "^4.0.5",
"less-plugin-clean-css": "^1.5.1",
"lint-staged": "^4.3.0",
"mocha": "^3.0.2",
"nps": "^5.7.1",
"nps-utils": "^1.3.0",
"nyc": "^11.1.0",
"pre-push": "^0.1.1",
"react": "^15.5.0",
"react-addons-shallow-compare": "^15.5.0",
"react-dom": "^15.5.0",
Expand Down Expand Up @@ -83,7 +84,8 @@
"lint": "eslint .",
"publish:examples": "NODE_ENV=production nps publish",
"start": "webpack-dev-server --progress",
"test": "NODE_ENV=test mocha --compilers js:babel-core/register"
"test": "NODE_ENV=test mocha --compilers js:babel-core/register",
"precommit": "lint-staged && yarn run test"
},
"files": [
"dist",
Expand All @@ -99,8 +101,7 @@
"select",
"ui"
],
"pre-push": [
"lint",
"test"
]
"lint-staged": {
"*.js": ["eslint", "git add"]
}
}

0 comments on commit 207ca7c

Please sign in to comment.