File tree Expand file tree Collapse file tree 3 files changed +203
-6
lines changed Expand file tree Collapse file tree 3 files changed +203
-6
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ module.exports = {
21
21
"rules" : {
22
22
"arrow-parens" : [
23
23
"error" ,
24
- "always "
24
+ "as-needed "
25
25
] ,
26
26
"arrow-body-style" : [
27
27
2 ,
Original file line number Diff line number Diff line change 5
5
"main" : " lib/react-d3-tree.min.js" ,
6
6
"scripts" : {
7
7
"clean:lib" : " rimraf lib/*" ,
8
+ "precommit" : " lint-staged" ,
8
9
"build" : " yarn clean:lib && webpack --progress --colors --env build" ,
9
10
"dev" : " yarn clean:lib && webpack --progress --colors --watch --env dev" ,
10
11
"lint" : " eslint ." ,
21
22
"preanalyze" : " rimraf stats.json" ,
22
23
"analyze" : " webpack --config webpack.config.js --env build --profile --json > stats.json && echo '==> http://webpack.github.io/analyse/'"
23
24
},
25
+ "lint-staged" : {
26
+ "src/**/*.js" : [
27
+ " eslint" ,
28
+ " prettier --write --single-quote --trailing-comma=all" ,
29
+ " git add"
30
+ ]
31
+ },
24
32
"jest" : {
25
33
"collectCoverageFrom" : [
26
34
" src/**/*.{js,jsx}" ,
69
77
"eslint-plugin-import" : " ^2.2.0" ,
70
78
"eslint-plugin-jsx-a11y" : " ^4.0.0" ,
71
79
"eslint-plugin-react" : " ^6.10.0" ,
80
+ "husky" : " ^0.14.3" ,
72
81
"jest" : " ^19.0.2" ,
73
82
"jsdoc-to-markdown" : " ^3.0.0" ,
83
+ "lint-staged" : " ^4.1.3" ,
74
84
"np" : " ^2.16.0" ,
75
85
"postcss-loader" : " ^1.3.3" ,
86
+ "prettier" : " ^1.6.1" ,
76
87
"react" : " ^15.6.0" ,
77
88
"react-docgen" : " ^2.16.0" ,
78
89
"react-dom" : " ^15.6.0" ,
You can’t perform that action at this time.
0 commit comments