diff --git a/frontend/.eslintrc.json b/frontend/.eslintrc.json index d87ab596..7a135596 100644 --- a/frontend/.eslintrc.json +++ b/frontend/.eslintrc.json @@ -12,7 +12,7 @@ "react/prop-types": 0, "no-console": 1, "react-hooks/rules-of-hooks": 2, - "react-hooks/exhaustive-deps": 1, + "react-hooks/exhaustive-deps": 0, "no-unused-vars": ["error", { "varsIgnorePattern": "React" }], "no-irregular-whitespace": 1 }, @@ -34,6 +34,11 @@ "settings": { "react": { "version": "detect" + }, + "import/resolver": { + "node": { + "extensions": [".js", ".jsx", ".ts", ".tsx"] + } } } } diff --git a/frontend/package.json b/frontend/package.json index 7ec2c76a..b84acd5f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -16,10 +16,9 @@ "react-i18next": "^11.4.0", "react-router": "^5.1.2", "react-router-dom": "^5.1.2", - "react-scripts": "^3.4.3", + "react-scripts": "5.0.1", "react-vega": "^7.3.0", - "sift": "^13.5.4", - "styled-components": "^5.1.1", + "styled-components": "^5.3.5", "uuid": "^3.4.0", "vega": "^5.13.0", "vega-lite": "^4.13.0" diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index d9e1f780..eb4e4b53 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -11,7 +11,7 @@ import Suite from './pages/Suite'; import Comparison from './pages/Comparison'; import Series from './pages/Series'; import Build from './pages/Build'; -import Search from './pages/Search.jsx'; +import Search from './pages/Search'; import './utils/i118n'; import 'normalize.css'; import './index.css'; diff --git a/frontend/src/serviceWorker.js b/frontend/src/serviceWorker.js index 43f4a43b..eba516bd 100644 --- a/frontend/src/serviceWorker.js +++ b/frontend/src/serviceWorker.js @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ // This optional code is used to register a service worker. // register() is not called by default. diff --git a/frontend/src/setupProxy.js b/frontend/src/setupProxy.js index 7515f054..b3d266d1 100644 --- a/frontend/src/setupProxy.js +++ b/frontend/src/setupProxy.js @@ -6,11 +6,11 @@ let server_url = process.env.REACT_APP_SERVER_URL || 'localhost'; let server_port = process.env.REACT_APP_FRONT_END_PORT || '5000'; module.exports = function(app) { - app.use( - '/data', - proxy({ - target: 'http://' + server_url + ':' + server_port, - changeOrigin: true - }) - ); + app.use( + '/data', + proxy({ + target: 'http://' + server_url + ':' + server_port, + changeOrigin: true, + }) + ); };