Skip to content

Commit d272ba0

Browse files
committed
Upgrade to react-scripts@6 and eslint@7
1 parent 5b6ebdd commit d272ba0

File tree

4 files changed

+223
-368
lines changed

4 files changed

+223
-368
lines changed

package.json

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,9 @@
1010
"author": "Karl Horky <[email protected]>",
1111
"license": "MIT",
1212
"peerDependencies": {
13-
"@types/react": "16.9.52",
14-
"@types/react-dom": "16.9.8",
15-
"@typescript-eslint/eslint-plugin": "4.4.1",
16-
"@typescript-eslint/parser": "4.4.1",
17-
"babel-eslint": "10.1.0",
18-
"eslint": "6.8.0",
19-
"eslint-config-react-app": "5.2.1",
13+
"eslint-config-react-app": "6.0.0",
2014
"eslint-import-resolver-typescript": "2.3.0",
2115
"eslint-plugin-cypress": "2.11.2",
22-
"eslint-plugin-flowtype": "4.7.0",
23-
"eslint-plugin-import": "2.22.1",
24-
"eslint-plugin-jest": "24.1.0",
25-
"eslint-plugin-jsx-a11y": "6.3.1",
26-
"eslint-plugin-react": "7.21.4",
27-
"eslint-plugin-react-hooks": "4.1.2",
28-
"typescript": "4.0.3"
29-
},
30-
"devDependencies": {
31-
"@types/react": "16.9.52",
32-
"@types/react-dom": "16.9.8",
33-
"@typescript-eslint/eslint-plugin": "4.4.1",
34-
"@typescript-eslint/parser": "4.4.1",
35-
"babel-eslint": "10.1.0",
36-
"eslint": "6.8.0",
37-
"eslint-config-react-app": "5.2.1",
38-
"eslint-import-resolver-typescript": "2.3.0",
39-
"eslint-plugin-cypress": "2.11.2",
40-
"eslint-plugin-flowtype": "4.7.0",
41-
"eslint-plugin-import": "2.22.1",
42-
"eslint-plugin-jest": "24.1.0",
43-
"eslint-plugin-jsx-a11y": "6.3.1",
44-
"eslint-plugin-react": "7.21.4",
45-
"eslint-plugin-react-hooks": "4.1.2",
4616
"typescript": "4.0.3"
4717
}
4818
}

readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ To add ESLint configuration to a project, install the dependencies and add the c
1010

1111
```sh
1212
yarn add --dev @upleveled/eslint-config-upleveled
13+
npx install-peerdeps --yarn --dev -o eslint-config-react-app
1314
npx install-peerdeps --yarn --dev -o @upleveled/eslint-config-upleveled
1415
cp node_modules/@upleveled/eslint-config-upleveled/templates/.eslintrc.js ./
1516
cp node_modules/@upleveled/eslint-config-upleveled/templates/tsconfig.json ./
1617
```
1718

18-
If you have a monorepo using Yarn Workspaces and would like to install the config in the root, change the first two lines to these:
19+
If you have a monorepo using Yarn Workspaces and would like to install the config in the root, change the first three lines to these:
1920

2021
```sh
2122
yarn add -W --dev @upleveled/eslint-config-upleveled
23+
npx install-peerdeps --yarn --dev -o eslint-config-react-app --extra-args "-W"
2224
npx install-peerdeps --yarn --dev -o @upleveled/eslint-config-upleveled --extra-args "-W"
2325
```
2426

templates/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"es2020.bigint",
88
"es2020.string"
99
],
10+
"target": "ES2015",
11+
"noFallthroughCasesInSwitch": true,
1012
"allowJs": true,
1113
"strict": true,
1214
"noEmit": true,

0 commit comments

Comments
 (0)