Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds lint and test pre-commit hooks #2077

Merged
merged 3 commits into from
Oct 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@
"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",
Expand Down Expand Up @@ -82,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 @@ -97,5 +100,8 @@
"react-component",
"select",
"ui"
]
],
"lint-staged": {
"*.js": "eslint"
}
}