Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit 19a4672

Browse files
chrisdrackettgaearon
authored andcommitted
Add support for ignoreRestSiblings in no-unused-vars (#1705)
* updating eslint to 3.16.1 * add support for ignoreRestSiblings in eslint http://eslint.org/docs/rules/no-unused-vars#ignorerestsiblings * updating eslint to 3.16.1 in `react-scripts` * updating eslint * missing `^` * missing ^ * pinning main eslint and updating readme * Pin ESLint version
1 parent 3fe8289 commit 19a4672

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"devDependencies": {
1414
"babel-eslint": "7.1.0",
15-
"eslint": "3.8.1",
15+
"eslint": "3.16.1",
1616
"eslint-config-react-app": "0.5.1",
1717
"eslint-plugin-flowtype": "2.21.0",
1818
"eslint-plugin-import": "2.0.1",

Diff for: packages/eslint-config-react-app/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ If you want to use this ESLint configuration in a project not built with Create
1717
First, install this package, ESLint and the necessary plugins.
1818

1919
```sh
20-
npm install --save-dev eslint-config-react-app babel-eslint@7.0.0 eslint@3.8.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
20+
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
2121
```
2222

2323
Then create a file named `.eslintrc` with following contents in the root folder of your project:

Diff for: packages/eslint-config-react-app/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ module.exports = {
134134
'no-unused-vars': ['warn', {
135135
vars: 'local',
136136
varsIgnorePattern: '^_',
137-
args: 'none'
137+
args: 'none',
138+
ignoreRestSiblings: true,
138139
}],
139140
'no-use-before-define': ['warn', 'nofunc'],
140141
'no-useless-computed-key': 'warn',

Diff for: packages/eslint-config-react-app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"peerDependencies": {
1414
"babel-eslint": "^7.0.0",
15-
"eslint": "^3.8.1",
15+
"eslint": "^3.16.1",
1616
"eslint-plugin-flowtype": "^2.21.0",
1717
"eslint-plugin-import": "^2.0.1",
1818
"eslint-plugin-jsx-a11y": "^2.2.3",

Diff for: packages/react-scripts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"css-loader": "0.26.1",
3838
"detect-port": "1.0.1",
3939
"dotenv": "2.0.0",
40-
"eslint": "3.8.1",
40+
"eslint": "3.16.1",
4141
"eslint-config-react-app": "^0.5.2",
4242
"eslint-loader": "1.6.3",
4343
"eslint-plugin-flowtype": "2.21.0",

0 commit comments

Comments
 (0)