From b4888366b59ac8d56ede18c89422b54fea7f8c58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= <info@michaeldeboey.be> Date: Mon, 12 Apr 2021 13:04:18 +0200 Subject: [PATCH] feat(eslint-config-react-app): support eslint-plugin-testing-library 4.x --- packages/eslint-config-react-app/README.md | 2 +- packages/eslint-config-react-app/package.json | 2 +- packages/react-error-overlay/package.json | 14 ++++++------- packages/react-scripts/package.json | 20 +++++++++---------- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/packages/eslint-config-react-app/README.md b/packages/eslint-config-react-app/README.md index 454c803f6..754d6dca9 100644 --- a/packages/eslint-config-react-app/README.md +++ b/packages/eslint-config-react-app/README.md @@ -39,7 +39,7 @@ This config also ships with optional Jest rules for ESLint (based on [`eslint-pl You'll first need to add the ESLint plugin for Jest (if you don't already have it installed). ```sh -npm install --save-dev eslint-plugin-jest@^24.0.0 eslint-plugin-testing-library@^3.9.0 +npm install --save-dev eslint-plugin-jest@^24.0.0 eslint-plugin-testing-library@^4.0.0 ``` You can then enable these rules by adding the Jest config to the `extends` array in your ESLint config. diff --git a/packages/eslint-config-react-app/package.json b/packages/eslint-config-react-app/package.json index 53b38908c..86cf6eb21 100644 --- a/packages/eslint-config-react-app/package.json +++ b/packages/eslint-config-react-app/package.json @@ -28,7 +28,7 @@ "eslint-plugin-jsx-a11y": "^6.3.1", "eslint-plugin-react": "^7.20.3", "eslint-plugin-react-hooks": "^4.0.8", - "eslint-plugin-testing-library": "^3.9.0" + "eslint-plugin-testing-library": "^3.9.0 || ^4.0.0" }, "peerDependenciesMeta": { "eslint-plugin-jest": { diff --git a/packages/react-error-overlay/package.json b/packages/react-error-overlay/package.json index 094b5b480..7f9338369 100644 --- a/packages/react-error-overlay/package.json +++ b/packages/react-error-overlay/package.json @@ -44,15 +44,15 @@ "chalk": "2.4.2", "chokidar": "^3.4.3", "cross-env": "7.0.2", - "eslint": "^7.11.0", + "eslint": "^7.30.0", "eslint-config-react-app": "^6.0.0", - "eslint-plugin-flowtype": "^5.2.0", - "eslint-plugin-import": "^2.22.1", - "eslint-plugin-jest": "^24.1.0", - "eslint-plugin-jsx-a11y": "^6.3.1", - "eslint-plugin-react": "^7.21.5", + "eslint-plugin-flowtype": "^5.8.0", + "eslint-plugin-import": "^2.23.4", + "eslint-plugin-jest": "^24.3.6", + "eslint-plugin-jsx-a11y": "^6.4.1", + "eslint-plugin-react": "^7.24.0", "eslint-plugin-react-hooks": "^4.2.0", - "eslint-plugin-testing-library": "^3.9.2", + "eslint-plugin-testing-library": "^4.9.0", "flow-bin": "^0.116.0", "html-entities": "1.3.1", "jest": "26.6.0", diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index 6b37f9eeb..5c5160f0a 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -32,8 +32,8 @@ "@babel/eslint-parser": "^7.13.14", "@pmmmwh/react-refresh-webpack-plugin": "0.4.3", "@svgr/webpack": "5.5.0", - "@typescript-eslint/eslint-plugin": "^4.5.0", - "@typescript-eslint/parser": "^4.5.0", + "@typescript-eslint/eslint-plugin": "^4.28.3", + "@typescript-eslint/parser": "^4.28.3", "babel-jest": "^26.6.0", "babel-loader": "^8.1.0", "babel-plugin-named-asset-import": "^0.3.7", @@ -44,16 +44,16 @@ "css-loader": "4.3.0", "dotenv": "8.2.0", "dotenv-expand": "5.1.0", - "eslint": "^7.11.0", + "eslint": "^7.30.0", "eslint-config-react-app": "^6.0.0", - "eslint-plugin-flowtype": "^5.2.0", - "eslint-plugin-import": "^2.22.1", - "eslint-plugin-jest": "^24.1.0", - "eslint-plugin-jsx-a11y": "^6.3.1", - "eslint-plugin-react": "^7.21.5", + "eslint-plugin-flowtype": "^5.8.0", + "eslint-plugin-import": "^2.23.4", + "eslint-plugin-jest": "^24.3.6", + "eslint-plugin-jsx-a11y": "^6.4.1", + "eslint-plugin-react": "^7.24.0", "eslint-plugin-react-hooks": "^4.2.0", - "eslint-plugin-testing-library": "^3.9.2", - "eslint-webpack-plugin": "^2.5.2", + "eslint-plugin-testing-library": "^4.9.0", + "eslint-webpack-plugin": "^2.5.4", "file-loader": "6.1.1", "fs-extra": "^9.0.1", "html-webpack-plugin": "4.5.0", -- GitLab