Skip to content

Commit 05bfcb9

Browse files
committed
chore: upgrade CRA v4
1 parent ac10926 commit 05bfcb9

File tree

6 files changed

+2527
-2364
lines changed

6 files changed

+2527
-2364
lines changed

.env

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# https://github.com/facebook/create-react-app/issues/9873
2+
DISABLE_NEW_JSX_TRANSFORM=true
3+
# Enable React Refresh
4+
FAST_REFRESH=true

craco.config.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
'use strict'
22

3-
const CracoWorkboxPlugin = require('craco-workbox')
43
const pkg = require('./package.json')
54

65
process.env.REACT_APP_VERSION = pkg.version
76

87
module.exports = {
9-
plugins: [
10-
{
11-
plugin: CracoWorkboxPlugin,
12-
},
13-
],
8+
plugins: [],
149
style: {
1510
postcss: {
1611
plugins: [

package.json

+12-13
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
"@sumup/design-tokens": "^1.0.3",
1616
"@sumup/icons": "^1.2.0",
1717
"@sumup/intl": "^1.1.3",
18-
"@testing-library/jest-dom": "^4.2.4",
19-
"@testing-library/react": "^9.3.2",
18+
"@testing-library/jest-dom": "^5.11.5",
19+
"@testing-library/react": "^11.1.0",
2020
"@testing-library/react-hooks": "^3.4.2",
21-
"@testing-library/user-event": "^7.1.2",
21+
"@testing-library/user-event": "^12.1.10",
2222
"@types/bluebird": "^3.5.32",
2323
"@types/bytes": "^3.1.0",
2424
"@types/chart.js": "^2.9.27",
2525
"@types/enzyme": "^3.10.7",
2626
"@types/enzyme-adapter-react-16": "^1.0.6",
27-
"@types/jest": "^24.0.0",
27+
"@types/jest": "^26.0.15",
2828
"@types/loadable__component": "^5.13.0",
2929
"@types/lodash-es": "^4.17.3",
3030
"@types/node": "^12.0.0",
@@ -35,21 +35,20 @@
3535
"@types/react-tabs": "^2.3.2",
3636
"@types/react-virtualized": "^9.21.10",
3737
"@types/uuid": "^8.3.0",
38-
"@typescript-eslint/eslint-plugin": "^3.9.0",
39-
"@typescript-eslint/parser": "^3.9.0",
38+
"@typescript-eslint/eslint-plugin": "^4.5.0",
39+
"@typescript-eslint/parser": "^4.5.0",
4040
"autoprefixer": "^9.8.6",
4141
"axios": "^0.21.0",
4242
"bluebird": "^3.7.2",
4343
"bytes": "^3.1.0",
4444
"chart.js": "^2.9.4",
4545
"clsx": "^1.1.1",
46-
"craco-workbox": "^0.1.0",
4746
"dayjs": "^1.9.4",
4847
"emotion-theming": "^10.0.27",
4948
"enzyme": "^3.11.0",
5049
"enzyme-adapter-react-16": "^1.15.5",
5150
"enzyme-to-json": "^3.6.1",
52-
"eslint": "^6.6.0",
51+
"eslint": "^7.12.0",
5352
"eslint-plugin-react": "^7.21.5",
5453
"eslint-plugin-react-hooks": "^4.2.0",
5554
"husky": "^4.3.0",
@@ -64,12 +63,12 @@
6463
"prettier": "^2.1.2",
6564
"prop-types": "^15.7.2",
6665
"raw.macro": "^0.4.2",
67-
"react": "^16.13.1",
66+
"react": "^17.0.1",
6867
"react-collapse": "^5.0.1",
69-
"react-dom": "^16.13.1",
68+
"react-dom": "^17.0.1",
7069
"react-ga": "^3.1.2",
7170
"react-router-dom": "^5.2.0",
72-
"react-scripts": "3.4.3",
71+
"react-scripts": "4.0.0",
7372
"react-scroll-to": "^3.0.0-beta.6",
7473
"react-tabs": "^3.1.1",
7574
"react-toastify": "^6.0.9",
@@ -78,9 +77,9 @@
7877
"store2": "^2.12.0",
7978
"swr": "^0.3.6",
8079
"tailwindcss": "^1.9.6",
81-
"ts-jest": "^24.3.0",
80+
"ts-jest": "^26.4.2",
8281
"twin.macro": "^1.11.1",
83-
"typescript": "^3.7.2",
82+
"typescript": "^4.0.3",
8483
"use-is-in-viewport": "^1.0.9",
8584
"uuid": "^8.3.0"
8685
},

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"resolveJsonModule": true,
1818
"isolatedModules": true,
1919
"noEmit": true,
20-
"jsx": "react"
20+
"jsx": "react",
21+
"noFallthroughCasesInSwitch": true
2122
},
2223
"include": [
2324
"src"

workbox.config.js

-6
This file was deleted.

0 commit comments

Comments
 (0)