Skip to content

Commit dd39f85

Browse files
committed
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 jsx-eslint/eslint-plugin-react#1955 before changing this hardcoded behavior. Closes facebook#5034
1 parent c989b70 commit dd39f85

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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,

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)