From 6c78f59dd6f01297d5a7fc895998023f21571eec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Thu, 6 Aug 2020 10:54:22 +0200 Subject: [PATCH] feat: Update ESLint dependencies --- package.json | 2 +- packages/eslint-config-react-app/README.md | 2 +- packages/eslint-config-react-app/package.json | 6 +++--- packages/react-error-overlay/package.json | 8 ++++---- packages/react-scripts/package.json | 12 ++++++------ 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index b23e1b7c31d..d10bc9fc607 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "@testing-library/react": "^10.4.3", "@testing-library/user-event": "^12.0.11", "alex": "^8.0.0", - "eslint": "^7.5.0", + "eslint": "^7.9.0", "execa": "1.0.0", "fs-extra": "^9.0.0", "get-port": "^5.1.1", diff --git a/packages/eslint-config-react-app/README.md b/packages/eslint-config-react-app/README.md index 90330a0a879..ac49d2b738a 100644 --- a/packages/eslint-config-react-app/README.md +++ b/packages/eslint-config-react-app/README.md @@ -19,7 +19,7 @@ If you want to use this ESLint configuration in a project not built with Create First, install this package, ESLint and the necessary plugins. ```sh -npm install --save-dev eslint-config-react-app @typescript-eslint/eslint-plugin@2.x @typescript-eslint/parser@2.x babel-eslint@10.x eslint@6.x eslint-plugin-flowtype@4.x eslint-plugin-import@2.x eslint-plugin-jsx-a11y@6.x eslint-plugin-react@7.x eslint-plugin-react-hooks@2.x +npm install --save-dev eslint-config-react-app @typescript-eslint/eslint-plugin@^4.0.0 @typescript-eslint/parser@^4.0.0 babel-eslint@^10.0.0 eslint@^7.5.0 eslint-plugin-flowtype@^5.2.0 eslint-plugin-import@^2.22.0 eslint-plugin-jest@^24.0.0 eslint-plugin-jsx-a11y@^6.3.1 eslint-plugin-react@^7.20.3 eslint-plugin-react-hooks@^4.0.8 ``` Then create a file named `.eslintrc.json` with following contents in the root folder of your project: diff --git a/packages/eslint-config-react-app/package.json b/packages/eslint-config-react-app/package.json index 3ae20c59080..4f68416e971 100644 --- a/packages/eslint-config-react-app/package.json +++ b/packages/eslint-config-react-app/package.json @@ -15,10 +15,10 @@ "index.js" ], "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^3.0.0", - "@typescript-eslint/parser": "^3.0.0", + "@typescript-eslint/eslint-plugin": "^4.0.0", + "@typescript-eslint/parser": "^4.0.0", "babel-eslint": "^10.0.0", - "eslint": "^7.0.0", + "eslint": "^7.5.0", "eslint-plugin-flowtype": "^5.2.0", "eslint-plugin-import": "^2.22.0", "eslint-plugin-jest": "^24.0.0", diff --git a/packages/react-error-overlay/package.json b/packages/react-error-overlay/package.json index 584f362e9ed..5b82b449308 100644 --- a/packages/react-error-overlay/package.json +++ b/packages/react-error-overlay/package.json @@ -44,14 +44,14 @@ "chalk": "2.4.2", "chokidar": "^3.3.0", "cross-env": "7.0.2", - "eslint": "^7.5.0", + "eslint": "^7.9.0", "eslint-config-react-app": "^5.2.1", "eslint-plugin-flowtype": "^5.2.0", "eslint-plugin-import": "^2.22.0", - "eslint-plugin-jest": "^24.0.0", + "eslint-plugin-jest": "^24.0.1", "eslint-plugin-jsx-a11y": "^6.3.1", - "eslint-plugin-react": "^7.20.3", - "eslint-plugin-react-hooks": "^4.0.8", + "eslint-plugin-react": "^7.20.6", + "eslint-plugin-react-hooks": "^4.1.2", "flow-bin": "^0.116.0", "html-entities": "1.3.1", "jest": "26.3.0", diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index 42eefa522f5..8f696c01a05 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -31,8 +31,8 @@ "@babel/core": "7.10.5", "@pmmmwh/react-refresh-webpack-plugin": "0.4.1", "@svgr/webpack": "5.4.0", - "@typescript-eslint/eslint-plugin": "^3.3.0", - "@typescript-eslint/parser": "^3.3.0", + "@typescript-eslint/eslint-plugin": "^4.1.0", + "@typescript-eslint/parser": "^4.1.0", "babel-eslint": "^10.1.0", "babel-jest": "^26.3.0", "babel-loader": "8.1.0", @@ -44,15 +44,15 @@ "css-loader": "3.6.0", "dotenv": "8.2.0", "dotenv-expand": "5.1.0", - "eslint": "^7.5.0", + "eslint": "^7.9.0", "eslint-config-react-app": "^5.2.1", "eslint-loader": "^4.0.2", "eslint-plugin-flowtype": "^5.2.0", "eslint-plugin-import": "^2.22.0", - "eslint-plugin-jest": "^24.0.0", + "eslint-plugin-jest": "^24.0.1", "eslint-plugin-jsx-a11y": "^6.3.1", - "eslint-plugin-react": "^7.20.3", - "eslint-plugin-react-hooks": "^4.0.8", + "eslint-plugin-react": "^7.20.6", + "eslint-plugin-react-hooks": "^4.1.2", "file-loader": "6.0.0", "fs-extra": "^9.0.0", "html-webpack-plugin": "4.3.0",