Skip to content

Commit ed6430c

Browse files
committed
fix: offer an envName to preset-react-app
1 parent 8251f7f commit ed6430c

File tree

1 file changed

+4
-0
lines changed
  • packages/eslint-config-react-app

1 file changed

+4
-0
lines changed

packages/eslint-config-react-app/base.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ module.exports = {
3636
// If a Babel plugin does not introduce a syntax extension, it is
3737
// okay to not include it here since it is no-op for parser
3838
babelOptions: {
39+
// babel-preset-react-app requires an env name
40+
// The env name does not impact the range of syntax plugins
41+
// use the Babel default "development" here
42+
envName: 'development',
3943
presets: [require.resolve('babel-preset-react-app')],
4044
},
4145
},

0 commit comments

Comments
 (0)