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
This commit is contained in:
Joe Haddad
2018-09-20 11:58:27 -04:00
committed by GitHub
parent c989b70b89
commit 4abc5c4877
2 changed files with 2 additions and 0 deletions

View File

@@ -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,

View File

@@ -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,