File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 40
40
"eslint" : " ^3.8.1" ,
41
41
"eslint-plugin-react" : " ^6.4.1" ,
42
42
"flow-bin" : " ^0.33.0" ,
43
+ "husky" : " ^0.14.1" ,
43
44
"jest" : " ^16.0.2" ,
45
+ "lint-staged" : " ^4.0.0" ,
44
46
"lodash-webpack-plugin" : " ^0.10.2" ,
47
+ "prettier" : " ^1.5.2" ,
45
48
"react" : " ^15.1.0" ,
46
49
"react-addons-test-utils" : " ^15.1.0" ,
47
50
"react-dom" : " ^15.1.0" ,
56
59
"check" : " flow check" ,
57
60
"clean" : " rimraf lib dist coverage" ,
58
61
"lint" : " eslint src" ,
62
+ "precommit" : " lint-staged" ,
59
63
"prepublish" : " npm run clean && npm run build" ,
60
64
"start" : " webpack-dev-server -d --config example/webpack.config.js" ,
61
65
"test" : " npm run lint && npm run check && jest"
62
66
},
67
+ "lint-staged" : {
68
+ "*.js" : [
69
+ " prettier --write --single-quote --trailing-comma all" ,
70
+ " git add"
71
+ ]
72
+ },
63
73
"jest" : {
64
74
"testPathDirs" : [
65
75
" src"
You can’t perform that action at this time.
0 commit comments