summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
Diffstat (limited to 'package.json')
-rw-r--r--package.json10
1 files changed, 10 insertions, 0 deletions
diff --git a/package.json b/package.json
index 00e56349..c6c0994a 100644
--- a/package.json
+++ b/package.json
@@ -20,10 +20,13 @@
"dependencies": {
"approximate-number": "^2.0.0",
"classnames": "^2.2.5",
+ "husky": "^0.14.3",
"isomorphic-fetch": "^2.2.1",
"konva": "^1.6.8",
+ "lint-staged": "^4.2.3",
"node-sass-chokidar": "^0.0.3",
"npm-run-all": "^4.1.1",
+ "prettier": "^1.7.4",
"prop-types": "^15.5.10",
"react": "^15.6.1",
"react-document-title": "^2.0.3",
@@ -45,7 +48,14 @@
"svgsaver": "^0.9.0",
"victory": "^0.22.2"
},
+ "lint-staged": {
+ "src/**/*.{js,jsx,json}": [
+ "prettier --write",
+ "git add"
+ ]
+ },
"scripts": {
+ "precommit": "lint-staged",
"build-css": "node-sass-chokidar src/ -o src/",
"watch-css": "npm run build-css && node-sass-chokidar src/ -o src/ --watch --recursive",
"start-js": "react-scripts start",