From dffc27e2cdb2e0b9768a977a7a0d8fba2896daf0 Mon Sep 17 00:00:00 2001 From: Th3Wall Date: Tue, 16 Jan 2024 02:25:32 +0100 Subject: [PATCH] Update old dependencies --- .babelrc | 4 +++ .eslintrc | 57 +++++++++++++++++------------------ .gitignore | 3 +- google803f79ad64114124.html | 1 + netlify.toml | 4 --- package.json | 11 ++++--- src/firebase/firebaseUtils.js | 6 ++-- 7 files changed, 43 insertions(+), 43 deletions(-) create mode 100644 .babelrc create mode 100644 google803f79ad64114124.html delete mode 100644 netlify.toml diff --git a/.babelrc b/.babelrc new file mode 100644 index 00000000..4f26b9b5 --- /dev/null +++ b/.babelrc @@ -0,0 +1,4 @@ +{ + "presets": ["@babel/preset-env", "@babel/preset-react"], + "plugins": ["@babel/plugin-proposal-optional-chaining"] +} diff --git a/.eslintrc b/.eslintrc index 97a090ae..62f10330 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,32 +1,31 @@ { - "env": { - "browser": true, - "jest": true, - "es6": true, - "node": true - }, - "plugins": ["import", "react"], - "extends": ["eslint:recommended", "plugin:react/recommended", "plugin:react-hooks/recommended"], - "parser": "babel-eslint", - "parserOptions": { - "ecmaVersion": 2020, - "sourceType": "module", - "ecmaFeatures": { - "jsx": true, - "modules": true, - "experimentalObjectRestSpread": true - } - }, - "rules": { - "no-console": "off", - "no-eval": "error", - "import/first": "error", - "react/react-in-jsx-scope": "off", - "react/prop-types": "off" - }, - "settings": { - "react": { - "version": "detect" - } + "env": { + "browser": true, + "jest": true, + "es6": true, + "node": true + }, + "plugins": ["import", "react"], + "extends": ["eslint:recommended", "plugin:react/recommended", "plugin:react-hooks/recommended"], + "parser": "@babel/eslint-parser", + "parserOptions": { + "ecmaVersion": "latest", + "sourceType": "module", + "ecmaFeatures": { + "jsx": true, + "modules": true } + }, + "rules": { + "no-console": "off", + "no-eval": "error", + "import/first": "error", + "react/react-in-jsx-scope": "off", + "react/prop-types": "off" + }, + "settings": { + "react": { + "version": "detect" + } + } } diff --git a/.gitignore b/.gitignore index 3a87a118..369d1a82 100644 --- a/.gitignore +++ b/.gitignore @@ -26,5 +26,4 @@ firebase-debug.log* .prettierrc .idea .env -package-lock.json -google803f79ad64114124.html \ No newline at end of file +package-lock.json \ No newline at end of file diff --git a/google803f79ad64114124.html b/google803f79ad64114124.html new file mode 100644 index 00000000..978edc8a --- /dev/null +++ b/google803f79ad64114124.html @@ -0,0 +1 @@ +google-site-verification: google803f79ad64114124.html \ No newline at end of file diff --git a/netlify.toml b/netlify.toml deleted file mode 100644 index ff1c0508..00000000 --- a/netlify.toml +++ /dev/null @@ -1,4 +0,0 @@ -[[redirects]] - from = "/*" - to = "/index.html" - status = 200 \ No newline at end of file diff --git a/package.json b/package.json index a735e065..7b263832 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,9 @@ "@testing-library/jest-dom": "^5.11.9", "@testing-library/react": "^11.2.5", "@testing-library/user-event": "^12.7.3", - "axios": "^0.21.1", - "firebase": "^8.2.9", - "firebase-tools": "^9.5.0", + "axios": "^1.6.5", + "firebase": "^10.7.1", + "firebase-tools": "^13.0.3", "framer-motion": "^4.1.16", "react": "^17.0.1", "react-dom": "^17.0.1", @@ -16,7 +16,7 @@ "react-icons": "^4.2.0", "react-redux": "^7.2.2", "react-router-dom": "^5.2.0", - "react-scripts": "4.0.3", + "react-scripts": "^5.0.1", "redux": "^4.0.5", "redux-logger": "^3.0.6", "redux-persist": "^6.0.0", @@ -53,7 +53,8 @@ ] }, "devDependencies": { - "babel-eslint": "^10.1.0", + "@babel/eslint-parser": "^7.23.3", + "@babel/plugin-proposal-private-property-in-object": "^7.21.11", "eslint": "^7.20.0", "eslint-config-prettier": "^8.0.0", "eslint-plugin-prettier": "^3.3.1", diff --git a/src/firebase/firebaseUtils.js b/src/firebase/firebaseUtils.js index de810cdc..6db0cc30 100644 --- a/src/firebase/firebaseUtils.js +++ b/src/firebase/firebaseUtils.js @@ -1,6 +1,6 @@ -import firebase from "firebase/app" -import "firebase/firestore" -import "firebase/auth" +import firebase from "firebase/compat/app" +import "firebase/compat/firestore" +import "firebase/compat/auth" const { REACT_APP_FIREBASE_API_KEY, REACT_APP_FIREBASE_AUTH_DOMAIN, REACT_APP_FIREBASE_PROJECT_ID, REACT_APP_FIREBASE_STORAGE_BUCKET, REACT_APP_FIREBASE_MESSAGING_SENDER_ID, REACT_APP_FIREBASE_APP_ID, REACT_APP_FIREBASE_MEASUREMEMT_ID } = process.env;