From c923c95dce4b4efaf21e83f912c5055298a84be4 Mon Sep 17 00:00:00 2001 From: akiran Date: Sat, 11 Dec 2021 22:46:06 +0530 Subject: [PATCH] updated eslint packages to fix #2078 --- .eslintrc | 14 +++++++++----- package.json | 13 ++++++------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.eslintrc b/.eslintrc index 2d8316668..563dcfb00 100644 --- a/.eslintrc +++ b/.eslintrc @@ -9,7 +9,8 @@ "react/prop-types": 0, "react/no-find-dom-node": 0, "react/display-name": 0, - "no-console": 0 + "no-console": 0, + "no-prototype-builtins": 0 }, "env": { "node": true, @@ -17,14 +18,17 @@ "es6": true, "jasmine": true }, - "parser": "babel-eslint", + "parser": "@babel/eslint-parser", + "parserOptions": { + "requireConfigFile": false + }, "plugins": [ - "react", - "import" + "react", + "import" ], "extends": [ "eslint:recommended", "plugin:import/errors", "plugin:react/recommended" ] -} +} \ No newline at end of file diff --git a/package.json b/package.json index 4896f23ce..1546b69f6 100644 --- a/package.json +++ b/package.json @@ -36,14 +36,14 @@ ], "devDependencies": { "@babel/cli": "^7.0.0", - "@babel/core": "^7.1.2", + "@babel/core": "^7.16.0", + "@babel/eslint-parser": "^7.16.3", "@babel/plugin-proposal-class-properties": "^7.1.0", "@babel/polyfill": "^7.0.0", "@babel/preset-env": "^7.1.0", "@babel/preset-react": "^7.0.0", "autoprefixer": "^7.1.2", "babel-core": "^7.0.0-bridge.0", - "babel-eslint": "^9.0.0", "babel-jest": "^24.8.0", "babel-loader": "^8.0.4", "babel-preset-airbnb": "^2.1.1", @@ -53,9 +53,9 @@ "enzyme": "^3.2.0", "enzyme-adapter-react-16": "^1.1.0", "es5-shim": "^4.5.9", - "eslint": "^5.9.0", - "eslint-plugin-import": "^2.9.0", - "eslint-plugin-react": "^6.3.0", + "eslint": "^8.4.1", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-react": "^7.27.1", "express": "^4.14.0", "foundation-apps": "^1.2.0", "gulp": "^4.0.0", @@ -65,13 +65,12 @@ "jquery": "^3.2.1", "js-beautify": "^1.7.5", "json-loader": "^0.5.4", - "lint-staged": "^7.0.3", + "lint-staged": "^12.1.2", "opn": "^5.4.0", "postcss-loader": "^1.3.3", "prettier": "^1.14.3", "raf": "^3.4.0", "react": "^16.0.0", - "react-addons-test-utils": "^15.6.2", "react-dom": "^16.0.0", "react-test-renderer": "^16.0.0", "sinon": "^2.1.0",