File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed
Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change 1+ examples /static
Original file line number Diff line number Diff line change 1+ {
2+ "useTabs": false,
3+ "printWidth": 120,
4+ "tabWidth": 4,
5+ "trailingComma": "es5",
6+ "jsxBracketSameLine": true,
7+ "bracketSpacing": false,
8+ "semi": true
9+ }
Original file line number Diff line number Diff line change 2222 " react-component" ,
2323 " custom"
2424 ],
25- "dependencies" : {
26- "raf" : " ^3.4.0"
27- },
25+ "dependencies" : {},
2826 "peerDependencies" : {
2927 "react" : " ^0.14.0 || ^15.0.0 || ^16.0.0" ,
3028 "react-dom" : " ^0.14.0 || ^15.0.0 || ^16.0.0" ,
4745 "expect" : " ^23.6.0" ,
4846 "html-loader" : " ^0.5.5" ,
4947 "html-webpack-plugin" : " ^3.2.0" ,
48+ "husky" : " ^1.1.2" ,
5049 "karma" : " ^3.0.0" ,
5150 "karma-chrome-launcher" : " ^2.2.0" ,
5251 "karma-coverage-istanbul-reporter" : " ^2.0.4" ,
5655 "mini-css-extract-plugin" : " ^0.4.4" ,
5756 "mocha" : " ^5.2.0" ,
5857 "node-sass" : " ^4.9.3" ,
58+ "prettier" : " ^1.14.3" ,
59+ "prop-types" : " ^15.0.0" ,
5960 "react" : " ^16.5.2" ,
6061 "react-dom" : " ^16.5.2" ,
61- "prop-types" : " ^15.0.0" ,
6262 "rimraf" : " ^2.6.2" ,
6363 "sass-loader" : " ^7.1.0" ,
6464 "simulant" : " ^0.2.2" ,
7575 "test" : " cross-env NODE_ENV=test karma start" ,
7676 "test:watch" : " cross-env NODE_ENV=test karma start --auto-watch --no-single-run" ,
7777 "test:coverage" : " cross-env NODE_ENV=test COVERAGE=true karma start --single-run" ,
78- "prepublishOnly" : " npm test && npm run build"
78+ "format" : " prettier --write src/**/*.js tests/**/*.js examples/**/*.js" ,
79+ "format:list" : " prettier -l src/**/*.js tests/**/*.js examples/**/*.js" ,
80+ "precommit" : " npm run format" ,
81+ "prepublishOnly" : " npm run test && npm run build"
7982 }
8083}
You can’t perform that action at this time.
0 commit comments