From 65c0b963dddc66dfeda3da4f3d09f00669e783f2 Mon Sep 17 00:00:00 2001 From: Joe Haddad Date: Mon, 13 Mar 2017 16:56:09 -0400 Subject: [PATCH] Correct ESLint CLI options --- packages/react-scripts/config/webpack.config.dev.js | 4 +++- packages/react-scripts/config/webpack.config.prod.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/react-scripts/config/webpack.config.dev.js b/packages/react-scripts/config/webpack.config.dev.js index 1cf9a7e472e..aea37eab6bc 100644 --- a/packages/react-scripts/config/webpack.config.dev.js +++ b/packages/react-scripts/config/webpack.config.dev.js @@ -116,7 +116,9 @@ module.exports = { // @remove-on-eject-begin // Point ESLint to our predefined config. options: { - extends: ['react-app'], + baseConfig: { + extends: ['react-app'], + }, useEslintrc: false, }, // @remove-on-eject-end diff --git a/packages/react-scripts/config/webpack.config.prod.js b/packages/react-scripts/config/webpack.config.prod.js index 47842122f3e..218eb46bb0c 100644 --- a/packages/react-scripts/config/webpack.config.prod.js +++ b/packages/react-scripts/config/webpack.config.prod.js @@ -117,7 +117,9 @@ module.exports = { options: { // TODO: consider separate config for production, // e.g. to enable no-console and no-debugger only in production. - extends: ['react-app'], + baseConfig: { + extends: ['react-app'], + }, useEslintrc: false, }, // @remove-on-eject-end