From b0b9696efcb5eef73cdf974a8fa5e2f72c42714f Mon Sep 17 00:00:00 2001 From: Bond Date: Sun, 5 Mar 2017 20:35:24 +0100 Subject: [PATCH] Bump jsx-a11y version (#1542) * Bump jsx-a11y version * Update package dependecy for jsx-a11y * Bump version in react-scripts --- package.json | 2 +- packages/eslint-config-react-app/README.md | 2 +- packages/eslint-config-react-app/package.json | 2 +- packages/react-scripts/package.json | 2 +- packages/react-scripts/template/README.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 2532d407118..1398c949cf9 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "eslint-config-react-app": "0.5.1", "eslint-plugin-flowtype": "2.21.0", "eslint-plugin-import": "2.0.1", - "eslint-plugin-jsx-a11y": "2.2.3", + "eslint-plugin-jsx-a11y": "4.0.0", "eslint-plugin-react": "6.4.1", "lerna": "2.0.0-beta.38", "lerna-changelog": "^0.2.3" diff --git a/packages/eslint-config-react-app/README.md b/packages/eslint-config-react-app/README.md index 45cdfe99be2..8eace6efffc 100644 --- a/packages/eslint-config-react-app/README.md +++ b/packages/eslint-config-react-app/README.md @@ -17,7 +17,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 babel-eslint@7.0.0 eslint@3.16.1 eslint-plugin-flowtype@2.21.0 eslint-plugin-import@2.0.1 eslint-plugin-jsx-a11y@2.2.3 eslint-plugin-react@6.4.1 + npm install --save-dev eslint-config-react-app babel-eslint@7.1.1 eslint@3.16.1 eslint-plugin-flowtype@2.21.0 eslint-plugin-import@2.0.1 eslint-plugin-jsx-a11y@4.0.0 eslint-plugin-react@6.4.1 ``` Then create a file named `.eslintrc` 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 6e15a7b472f..9f8db175b2b 100644 --- a/packages/eslint-config-react-app/package.json +++ b/packages/eslint-config-react-app/package.json @@ -15,7 +15,7 @@ "eslint": "^3.16.1", "eslint-plugin-flowtype": "^2.21.0", "eslint-plugin-import": "^2.0.1", - "eslint-plugin-jsx-a11y": "^2.2.3", + "eslint-plugin-jsx-a11y": "^4.0.0", "eslint-plugin-react": "^6.4.1" } } diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index 2db2677978c..fa3e70bd4e5 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -42,7 +42,7 @@ "eslint-loader": "1.6.0", "eslint-plugin-flowtype": "2.21.0", "eslint-plugin-import": "2.0.1", - "eslint-plugin-jsx-a11y": "2.2.3", + "eslint-plugin-jsx-a11y": "4.0.0", "eslint-plugin-react": "6.4.1", "extract-text-webpack-plugin": "1.0.1", "file-loader": "0.10.0", diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 5e527811f08..8454fd983ea 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -245,7 +245,7 @@ Then add this block to the `package.json` file of your project: Finally, you will need to install some packages *globally*: ```sh -npm install -g eslint-config-react-app@0.3.0 eslint@3.8.1 babel-eslint@7.0.0 eslint-plugin-react@6.4.1 eslint-plugin-import@2.0.1 eslint-plugin-jsx-a11y@2.2.3 eslint-plugin-flowtype@2.21.0 +npm install -g eslint-config-react-app@0.3.0 eslint@3.8.1 babel-eslint@7.0.0 eslint-plugin-react@6.4.1 eslint-plugin-import@2.0.1 eslint-plugin-jsx-a11y@4.0.0 eslint-plugin-flowtype@2.21.0 ``` We recognize that this is suboptimal, but it is currently required due to the way we hide the ESLint dependency. The ESLint team is already [working on a solution to this](https://github.com/eslint/eslint/issues/3458) so this may become unnecessary in a couple of months.