Skip to content

Commit

Permalink
deps: upgrade to latest and fix break changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tjx666 committed Sep 28, 2020
1 parent 240952b commit 5c221d5
Show file tree
Hide file tree
Showing 4 changed files with 3,439 additions and 3,300 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,15 @@ module.exports = {
},
},
],
'unicorn/import-style': OFF,
'unicorn/no-null': OFF,
'unicorn/prevent-abbreviations': OFF,
'unicorn/no-process-exit': OFF,

'@typescript-eslint/explicit-function-return-type': OFF,
'@typescript-eslint/no-explicit-any': OFF,
'@typescript-eslint/no-non-null-assertion': OFF,
'@typescript-eslint/no-use-before-define': ERROR,
'@typescript-eslint/no-useless-constructor': ERROR,

'react/jsx-filename-extension': [ERROR, { extensions: ['.tsx'] }],
Expand All @@ -98,6 +100,7 @@ module.exports = {
'no-plusplus': OFF,
'no-underscore-dangle': OFF,
'no-unused-expressions': OFF,
'no-use-before-define': OFF,
'no-useless-constructor': OFF,
},
overrides: [
Expand Down
102 changes: 51 additions & 51 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,118 +47,118 @@
"ie >= 11"
],
"dependencies": {
"@csstools/normalize.css": "^10.1.0",
"@hot-loader/react-dom": "^16.12.0",
"@csstools/normalize.css": "^11.0.1",
"@hot-loader/react-dom": "^17.0.0-rc.2",
"react": "^16.13.0",
"react-dom": "^16.13.0",
"react-hot-loader": "^4.12.19",
"react-hot-loader": "^4.13.0",
"react-router-dom": "^5.1.2"
},
"devDependencies": {
"@babel/core": "^7.8.7",
"@babel/core": "^7.11.6",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-decorators": "^7.8.3",
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-react-constant-elements": "^7.8.3",
"@babel/plugin-transform-react-inline-elements": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.9.5",
"@babel/plugin-transform-runtime": "^7.11.5",
"@babel/preset-env": "^7.11.5",
"@babel/preset-react": "^7.8.3",
"@babel/preset-typescript": "^7.8.3",
"@commitlint/cli": "^9.1.1",
"@commitlint/config-conventional": "^9.1.1",
"@types/compression-webpack-plugin": "^4.0.0",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@types/compression-webpack-plugin": "^4.0.1",
"@types/connect-history-api-fallback": "^1.3.3",
"@types/copy-webpack-plugin": "^6.0.0",
"@types/cors": "^2.8.6",
"@types/express": "^4.17.6",
"@types/cors": "^2.8.7",
"@types/express": "^4.17.8",
"@types/friendly-errors-webpack-plugin": "^0.1.2",
"@types/html-webpack-plugin": "^3.2.2",
"@types/http-proxy-middleware": "^0.19.3",
"@types/mini-css-extract-plugin": "^0.9.1",
"@types/optimize-css-assets-webpack-plugin": "^5.0.1",
"@types/react": "^16.9.34",
"@types/react": "^16.9.49",
"@types/react-dom": "^16.9.6",
"@types/react-router-dom": "^5.1.4",
"@types/terser-webpack-plugin": "^3.0.0",
"@types/webpack": "^4.41.12",
"@types/terser-webpack-plugin": "^4.2.0",
"@types/webpack": "^4.41.22",
"@types/webpack-bundle-analyzer": "^3.8.0",
"@types/webpack-dev-middleware": "^3.7.0",
"@types/webpack-dev-middleware": "^3.7.2",
"@types/webpack-hot-middleware": "^2.25.2",
"@types/webpack-merge": "^4.1.5",
"@types/webpackbar": "^4.0.0",
"@types/yargs": "^15.0.4",
"@typescript-eslint/eslint-plugin": "^3.6.1",
"@typescript-eslint/parser": "^3.6.1",
"@types/yargs": "^15.0.7",
"@typescript-eslint/eslint-plugin": "^4.3.0",
"@typescript-eslint/parser": "^4.3.0",
"audit-ci": "^3.1.1",
"autoprefixer": "^9.7.6",
"autoprefixer": "^10.0.1",
"babel-loader": "^8.0.6",
"babel-plugin-dev-expression": "^0.2.2",
"chalk": "^4.0.0",
"clean-webpack-plugin": "^3.0.0",
"compression-webpack-plugin": "^4.0.0",
"compression-webpack-plugin": "^6.0.2",
"connect-history-api-fallback": "^1.6.0",
"conventional-changelog-cli": "^2.0.31",
"copy-webpack-plugin": "^6.0.3",
"conventional-changelog-cli": "^2.1.0",
"copy-webpack-plugin": "^6.1.1",
"core-js": "^3.6.5",
"cors": "^2.8.5",
"cross-env": "^7.0.2",
"css-loader": "^3.5.2",
"eslint": "^7.5.0",
"css-loader": "^4.3.0",
"eslint": "^7.10.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^6.11.0",
"eslint-import-resolver-typescript": "^2.0.0",
"eslint-config-prettier": "^6.12.0",
"eslint-import-resolver-typescript": "^2.3.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.18.3",
"eslint-plugin-react-hooks": "^4.0.8",
"eslint-plugin-unicorn": "^21.0.0",
"eslint-plugin-react": "^7.21.2",
"eslint-plugin-react-hooks": "^4.1.2",
"eslint-plugin-unicorn": "^22.0.0",
"express": "^4.17.1",
"fork-ts-checker-webpack-plugin": "^5.0.7",
"fork-ts-checker-webpack-plugin": "^5.2.0",
"friendly-errors-webpack-plugin": "^1.7.0",
"get-port": "^5.1.1",
"html-webpack-plugin": "^4.2.0",
"html-webpack-plugin": "^4.5.0",
"http-proxy-middleware": "^1.0.1",
"husky": "^4.2.5",
"husky": "^4.3.0",
"less": "^3.11.1",
"less-loader": "^6.2.0",
"lint-staged": "^10.1.7",
"less-loader": "^7.0.1",
"lint-staged": "^10.4.0",
"log-symbols": "^4.0.0",
"mini-css-extract-plugin": "^0.9.0",
"mini-css-extract-plugin": "^0.11.2",
"node-sass": "^4.13.1",
"open": "^7.0.2",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"open": "^7.2.1",
"optimize-css-assets-webpack-plugin": "^5.0.4",
"postcss-flexbugs-fixes": "^4.2.0",
"postcss-loader": "^3.0.0",
"postcss-loader": "^4.0.2",
"postcss-normalize": "^9.0.0",
"postcss-preset-env": "^6.7.0",
"prettier": "^2.0.5",
"sass-loader": "^9.0.2",
"prettier": "^2.1.2",
"sass-loader": "^10.0.2",
"size-plugin": "^2.0.1",
"speed-measure-webpack-plugin": "^1.3.1",
"style-loader": "^1.1.4",
"stylelint": "^13.3.3",
"stylelint": "^13.7.2",
"stylelint-config-prettier": "^8.0.1",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^20.0.0",
"stylelint-declaration-block-no-ignored-properties": "^2.3.0",
"stylelint-order": "^4.0.0",
"stylelint-scss": "^3.17.1",
"terser-webpack-plugin": "^3.0.7",
"ts-node": "^8.9.0",
"typescript": "^3.8.3",
"terser-webpack-plugin": "^4.2.2",
"ts-node": "^9.0.0",
"typescript": "^4.0.3",
"url-loader": "^4.1.0",
"webpack": "^4.43.0",
"webpack": "^4.44.2",
"webpack-build-notifier": "^2.0.0",
"webpack-bundle-analyzer": "^3.7.0",
"webpack-bundle-analyzer": "^3.9.0",
"webpack-dev-middleware": "^3.7.2",
"webpack-hot-middleware": "^2.25.0",
"webpack-merge": "^5.0.9",
"webpack-open-browser": "^1.0.3",
"webpack-merge": "^5.1.4",
"webpack-open-browser": "^1.0.5",
"webpackbar": "^4.0.0",
"yargs": "^15.1.0"
"yargs": "^16.0.3"
}
}
7 changes: 2 additions & 5 deletions scripts/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,8 @@ async function start() {
const compiler = webpack(devConfig);
setupMiddlewares(devServer, compiler);

const httpServer = devServer.listen(PORT, HOST, (err) => {
if (err) {
console.error(err);
return;
}
// see: https://github.com/DefinitelyTyped/DefinitelyTyped/commit/bb48ba4feb5ef620b5fe5147a4ee0e31e741dd9c#diff-d4c3ca4364a91014c1024748a43ae185
const httpServer = devServer.listen(PORT, HOST, () => {
// logSymbols.success 在 windows 平台渲染为 √ ,支持的平台会显示 ✔
console.log(
`DevServer is running at ${chalk.magenta.underline(address)} ${logSymbols.success}`,
Expand Down
Loading

0 comments on commit 5c221d5

Please sign in to comment.