Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit e72746f

Browse files
committed
Preserve ESLint config when ejecting
1 parent f9f3ea1 commit e72746f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ module.exports = {
146146
options: {
147147
formatter: eslintFormatter,
148148
eslintPath: require.resolve('eslint'),
149-
// @remove-on-eject-begin
150149
baseConfig: {
151150
extends: [require.resolve('eslint-config-react-app')],
152151
parser: 'typescript-eslint-parser',
153152
},
153+
// @remove-on-eject-begin
154154
ignore: false,
155155
useEslintrc: false,
156156
// @remove-on-eject-end

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ module.exports = {
153153
options: {
154154
formatter: eslintFormatter,
155155
eslintPath: require.resolve('eslint'),
156-
// @remove-on-eject-begin
157156
// TODO: consider separate config for production,
158157
// e.g. to enable no-console and no-debugger only in production.
159158
baseConfig: {
160159
extends: [require.resolve('eslint-config-react-app')],
161160
parser: 'typescript-eslint-parser',
162161
},
162+
// @remove-on-eject-begin
163163
ignore: false,
164164
useEslintrc: false,
165165
// @remove-on-eject-end

0 commit comments

Comments
 (0)