Skip to content

Commit 7af9c69

Browse files
committed
Upgrade react-scripts to v4
Simplify ESLint configuration to get it running again.
1 parent eedfdb3 commit 7af9c69

File tree

4 files changed

+2683
-2809
lines changed

4 files changed

+2683
-2809
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,23 +67,23 @@ jobs:
6767
name: build qa
6868
command: yarn build
6969
env:
70+
BUILD_PATH: 'qa'
7071
GENERATE_SOURCEMAP: 'false'
7172
REACT_APP_NODE_ENV: 'QA'
72-
- run: mv build qa
7373
- run:
7474
name: build staging
7575
command: yarn build
7676
env:
77+
BUILD_PATH: 'staging'
7778
GENERATE_SOURCEMAP: 'false'
7879
REACT_APP_NODE_ENV: 'STAGING'
79-
- run: mv build staging
8080
- run:
8181
name: build production
8282
command: yarn build
8383
env:
84+
BUILD_PATH: 'production'
8485
GENERATE_SOURCEMAP: 'false'
8586
REACT_APP_NODE_ENV: 'PRODUCTION'
86-
- run: mv build production
8787
- persist_to_workspace:
8888
root: .
8989
paths:

.eslintrc

Lines changed: 0 additions & 17 deletions
This file was deleted.

package.json

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"react-phone-number-input": "^2.3.21",
1212
"react-redux": "^6.0.0",
1313
"react-router-dom": "^5.0.1",
14-
"react-scripts": "^3.0.1",
14+
"react-scripts": "4.0.3",
1515
"reactstrap": "^8.0.1",
1616
"redux": "^4.0.4",
1717
"redux-thunk": "^2.3.0"
@@ -33,7 +33,17 @@
3333
"eject": "react-scripts eject"
3434
},
3535
"eslintConfig": {
36-
"extends": "react-app"
36+
"extends": [
37+
"react-app",
38+
"prettier"
39+
],
40+
"plugins": [
41+
"prettier"
42+
],
43+
"rules": {
44+
"import/no-anonymous-default-export": "off",
45+
"prettier/prettier": "error"
46+
}
3747
},
3848
"husky": {
3949
"hooks": {
@@ -53,16 +63,8 @@
5363
"concurrently": "^5.0.0",
5464
"cors": "^2.8.5",
5565
"cypress": "^3.4.1",
56-
"eslint": "^6.2.2",
57-
"eslint-config-airbnb": "^18.0.1",
58-
"eslint-config-prettier": "^6.1.0",
59-
"eslint-config-react-app": "^7.0.1",
60-
"eslint-plugin-flowtype": "^8.0.3",
61-
"eslint-plugin-import": "^2.18.2",
62-
"eslint-plugin-jsx-a11y": "^6.2.3",
63-
"eslint-plugin-prettier": "^3.1.0",
64-
"eslint-plugin-react": "^7.14.3",
65-
"eslint-plugin-react-hooks": "^4.6.0",
66+
"eslint-config-prettier": "^8.5.0",
67+
"eslint-plugin-prettier": "^4.2.1",
6668
"husky": "^3.0.4",
6769
"lint-staged": "^9.2.5",
6870
"morgan": "^1.10.0",

0 commit comments

Comments
 (0)