Skip to content

Commit e70f78d

Browse files
committed
add prettier
1 parent fa90945 commit e70f78d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

package.json

+10
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@
4040
"eslint": "^3.8.1",
4141
"eslint-plugin-react": "^6.4.1",
4242
"flow-bin": "^0.33.0",
43+
"husky": "^0.14.1",
4344
"jest": "^16.0.2",
45+
"lint-staged": "^4.0.0",
4446
"lodash-webpack-plugin": "^0.10.2",
47+
"prettier": "^1.5.2",
4548
"react": "^15.1.0",
4649
"react-addons-test-utils": "^15.1.0",
4750
"react-dom": "^15.1.0",
@@ -56,10 +59,17 @@
5659
"check": "flow check",
5760
"clean": "rimraf lib dist coverage",
5861
"lint": "eslint src",
62+
"precommit": "lint-staged",
5963
"prepublish": "npm run clean && npm run build",
6064
"start": "webpack-dev-server -d --config example/webpack.config.js",
6165
"test": "npm run lint && npm run check && jest"
6266
},
67+
"lint-staged": {
68+
"*.js": [
69+
"prettier --write --single-quote --trailing-comma all",
70+
"git add"
71+
]
72+
},
6373
"jest": {
6474
"testPathDirs": [
6575
"src"

0 commit comments

Comments
 (0)