mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-28 09:25:42 +08:00
Bump jsx-a11y version (#1542)
* Bump jsx-a11y version * Update package dependecy for jsx-a11y * Bump version in react-scripts
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
"eslint-loader": "1.6.3",
|
||||
"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": "2.0.0",
|
||||
"file-loader": "0.10.0",
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user