From dd39f85b0a53ec71f2f62777e087e9f6d0f545b1 Mon Sep 17 00:00:00 2001 From: Joe Haddad Date: Thu, 20 Sep 2018 11:46:33 -0400 Subject: [PATCH] Always lint with latest React version This is the best behavior so people have seamless upgrades to new React majors. This is probably a terrible default and warning from the ESLint plugin, and we need to wait for https://github.com/yannickcr/eslint-plugin-react/issues/1955 before changing this hardcoded behavior. Closes #5034 --- packages/react-scripts/config/webpack.config.dev.js | 1 + packages/react-scripts/config/webpack.config.prod.js | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/react-scripts/config/webpack.config.dev.js b/packages/react-scripts/config/webpack.config.dev.js index 1fe0f70e264..e967bb94818 100644 --- a/packages/react-scripts/config/webpack.config.dev.js +++ b/packages/react-scripts/config/webpack.config.dev.js @@ -185,6 +185,7 @@ module.exports = { // @remove-on-eject-begin baseConfig: { extends: [require.resolve('eslint-config-react-app')], + settings: { react: { version: '999.999.999' } }, }, ignore: false, useEslintrc: false, diff --git a/packages/react-scripts/config/webpack.config.prod.js b/packages/react-scripts/config/webpack.config.prod.js index a3bb99bd0b7..1e0fadbf0e9 100644 --- a/packages/react-scripts/config/webpack.config.prod.js +++ b/packages/react-scripts/config/webpack.config.prod.js @@ -228,6 +228,7 @@ module.exports = { // e.g. to enable no-console and no-debugger only in production. baseConfig: { extends: [require.resolve('eslint-config-react-app')], + settings: { react: { version: '999.999.999' } }, }, ignore: false, useEslintrc: false,