From 42e566921dd46e6633d99be4f134db991665d7c0 Mon Sep 17 00:00:00 2001 From: Joe Haddad Date: Thu, 20 Sep 2018 11:58:27 -0400 Subject: [PATCH] Always lint with latest React version (#5043) This is the best behavior so people have seamless upgrades to new React majors. This is probably a terrible default 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 --- config/webpack.config.dev.js | 1 + config/webpack.config.prod.js | 1 + 2 files changed, 2 insertions(+) diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index 1fe0f70e264..e967bb94818 100644 --- a/config/webpack.config.dev.js +++ b/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/config/webpack.config.prod.js b/config/webpack.config.prod.js index a3bb99bd0b7..1e0fadbf0e9 100644 --- a/config/webpack.config.prod.js +++ b/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,