Skip to content

Commit 4abc5c4

Browse files
authored
Always lint with latest React version (facebook#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 jsx-eslint/eslint-plugin-react#1955 before changing this hardcoded behavior. Closes facebook#5034
1 parent c989b70 commit 4abc5c4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: packages/react-scripts/config/webpack.config.dev.js

+1
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ module.exports = {
185185
// @remove-on-eject-begin
186186
baseConfig: {
187187
extends: [require.resolve('eslint-config-react-app')],
188+
settings: { react: { version: '999.999.999' } },
188189
},
189190
ignore: false,
190191
useEslintrc: false,

Diff for: packages/react-scripts/config/webpack.config.prod.js

+1
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ module.exports = {
228228
// e.g. to enable no-console and no-debugger only in production.
229229
baseConfig: {
230230
extends: [require.resolve('eslint-config-react-app')],
231+
settings: { react: { version: '999.999.999' } },
231232
},
232233
ignore: false,
233234
useEslintrc: false,

0 commit comments

Comments
 (0)