mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-22 11:57:27 +08:00
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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user