From 8a91506a987812da06e5daf02be5c2d29f319eb9 Mon Sep 17 00:00:00 2001 From: MD Maruf Motaleb Date: Fri, 13 Oct 2023 12:26:07 +0100 Subject: [PATCH] Fixed eslint errors after adding new rules refs: BLAIS5-3514 --- .eslintrc.json | 7 +++---- package.json | 9 ++++++--- yarn.lock | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index e0883902..c2e5c214 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -26,7 +26,8 @@ }, "plugins": [ "react", - "@typescript-eslint" + "@typescript-eslint", + "import" ], "rules": { "linebreak-style": [ @@ -42,9 +43,7 @@ "always" ], "import/no-extraneous-dependencies": [ - "error", { - "devDependencies": true - } + "error", {"devDependencies": true} ], "@typescript-eslint/no-explicit-any": "error", "react/react-in-jsx-scope": "off", diff --git a/package.json b/package.json index 988a68e7..c751bb68 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,10 @@ "react-dom": "^17.0.0", "react-router-dom": "^5.2.0", "react-scripts": "5.0.1", - "typescript": "~4.3.5" + "typescript": "~4.3.5", + "react-router": "latest", + "history": "latest" + }, "devDependencies": { "@babel/core": "^7.20.5", @@ -65,7 +68,7 @@ "eslint": "^8.0.1", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-typescript": "^17.0.0", - "eslint-plugin-import": "^2.25.2", + "eslint-plugin-import": "^2.28.1", "eslint-plugin-n": "^15.0.0", "eslint-plugin-promise": "^6.0.0", "eslint-plugin-react": "^7.32.2", @@ -87,4 +90,4 @@ "last 1 safari version" ] } -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index 8fe66a25..5a72ec82 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5356,7 +5356,7 @@ eslint-plugin-flowtype@^8.0.3: lodash "^4.17.21" string-natural-compare "^3.0.1" -eslint-plugin-import@^2.25.2, eslint-plugin-import@^2.25.3: +eslint-plugin-import@^2.25.3, eslint-plugin-import@^2.28.1: version "2.28.1" resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.28.1.tgz#63b8b5b3c409bfc75ebaf8fb206b07ab435482c4" integrity sha512-9I9hFlITvOV55alzoKBI+K9q74kv0iKMeY6av5+umsNwayt59fz692daGyjR+oStBQgx6nwR9rXldDev3Clw+A==