Skip to content

Commit

Permalink
Upgrade to CRA 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
schneidmaster committed Apr 28, 2019
1 parent 4f751d5 commit d53ef3a
Show file tree
Hide file tree
Showing 6 changed files with 1,864 additions and 1,976 deletions.
1 change: 0 additions & 1 deletion client/.env
@@ -1 +0,0 @@
NODE_PATH=src
6 changes: 6 additions & 0 deletions client/jsconfig.json
@@ -0,0 +1,6 @@
{
"compilerOptions": {
"baseUrl": "src"
},
"include": ["src"]
}
5 changes: 2 additions & 3 deletions client/package.json
Expand Up @@ -43,7 +43,7 @@
"react-loadable": "^5.5.0",
"react-router": "^5.0.0",
"react-router-dom": "^5.0.0",
"react-scripts": "2.1.8",
"react-scripts": "3.0.0",
"react-select": "^2.4.2",
"react-timeago": "^4.4.0",
"render-if": "^0.1.1"
Expand All @@ -56,7 +56,6 @@
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-react": "^7.12.4",
"eslint-plugin-react-hooks": "^1.0.1",
"eslint-plugin-standard": "^4.0.0",
"jest-junit": "^6.3.0",
"prettier": "^1.17.0",
Expand All @@ -69,7 +68,7 @@
"serve": "NODE_PATH=src node ./server/index.js",
"format": "prettier --write './*.js' '**/*.js'",
"lint": "eslint '**/*.js'",
"test": "react-scripts test --env=jsdom --no-watch",
"test": "react-scripts test --env=jsdom --watchAll=false",
"test:ci": "JEST_JUNIT_OUTPUT=/tmp/test-results/jest/results.xml react-scripts test --env=jsdom --coverage --runInBand --reporters=\"jest-junit\"",
"test:watch": "react-scripts test --env=jsdom"
},
Expand Down
2 changes: 1 addition & 1 deletion client/src/containers/StateProvider.js
Expand Up @@ -21,7 +21,7 @@ const StateProvider = ({
useEffect(() => {
if (!token) client.clearStore();
if (socket) refreshSocket(socket);
}, [token]);
}, [client, socket, token]);

const setAuth = (data) => {
if (data) {
Expand Down
2 changes: 1 addition & 1 deletion client/src/containers/Subscriber.js
Expand Up @@ -3,7 +3,7 @@ import { useEffect } from "react";
const Subscriber = ({ subscribeToNew, children }) => {
useEffect(() => {
subscribeToNew();
}, []);
}, []); // eslint-disable-line react-hooks/exhaustive-deps

return children;
};
Expand Down

0 comments on commit d53ef3a

Please sign in to comment.