diff --git a/package.json b/package.json index 63f413e4d6d..97f2ec07a02 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ }, "devDependencies": { "babel-eslint": "7.1.0", - "eslint": "3.8.1", + "eslint": "3.16.1", "eslint-config-react-app": "0.5.1", "eslint-plugin-flowtype": "2.21.0", "eslint-plugin-import": "2.0.1", diff --git a/packages/eslint-config-react-app/README.md b/packages/eslint-config-react-app/README.md index 4d967afb806..45cdfe99be2 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.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 + 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 ``` Then create a file named `.eslintrc` with following contents in the root folder of your project: diff --git a/packages/eslint-config-react-app/index.js b/packages/eslint-config-react-app/index.js index f6dd412261f..f4d33baffa3 100644 --- a/packages/eslint-config-react-app/index.js +++ b/packages/eslint-config-react-app/index.js @@ -134,7 +134,8 @@ module.exports = { 'no-unused-vars': ['warn', { vars: 'local', varsIgnorePattern: '^_', - args: 'none' + args: 'none', + ignoreRestSiblings: true, }], 'no-use-before-define': ['warn', 'nofunc'], 'no-useless-computed-key': 'warn', diff --git a/packages/eslint-config-react-app/package.json b/packages/eslint-config-react-app/package.json index 344cd4a0214..6e15a7b472f 100644 --- a/packages/eslint-config-react-app/package.json +++ b/packages/eslint-config-react-app/package.json @@ -12,7 +12,7 @@ ], "peerDependencies": { "babel-eslint": "^7.0.0", - "eslint": "^3.8.1", + "eslint": "^3.16.1", "eslint-plugin-flowtype": "^2.21.0", "eslint-plugin-import": "^2.0.1", "eslint-plugin-jsx-a11y": "^2.2.3", diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index 1bc9e053f5a..137956e06c1 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -37,7 +37,7 @@ "css-loader": "0.26.1", "detect-port": "1.0.1", "dotenv": "2.0.0", - "eslint": "3.8.1", + "eslint": "3.16.1", "eslint-config-react-app": "^0.5.2", "eslint-loader": "1.6.3", "eslint-plugin-flowtype": "2.21.0",