Skip to content

Commit 65c0b96

Browse files
committed
Correct ESLint CLI options
1 parent bb49188 commit 65c0b96

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/react-scripts/config/webpack.config.dev.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ module.exports = {
116116
// @remove-on-eject-begin
117117
// Point ESLint to our predefined config.
118118
options: {
119-
extends: ['react-app'],
119+
baseConfig: {
120+
extends: ['react-app'],
121+
},
120122
useEslintrc: false,
121123
},
122124
// @remove-on-eject-end

packages/react-scripts/config/webpack.config.prod.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ module.exports = {
117117
options: {
118118
// TODO: consider separate config for production,
119119
// e.g. to enable no-console and no-debugger only in production.
120-
extends: ['react-app'],
120+
baseConfig: {
121+
extends: ['react-app'],
122+
},
121123
useEslintrc: false,
122124
},
123125
// @remove-on-eject-end

0 commit comments

Comments
 (0)