Skip to content

Commit

Permalink
fix: offer an envName to preset-react-app
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Mar 31, 2021
1 parent 8251f7f commit ed6430c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/eslint-config-react-app/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ module.exports = {
// If a Babel plugin does not introduce a syntax extension, it is
// okay to not include it here since it is no-op for parser
babelOptions: {
// babel-preset-react-app requires an env name
// The env name does not impact the range of syntax plugins
// use the Babel default "development" here
envName: 'development',
presets: [require.resolve('babel-preset-react-app')],
},
},
Expand Down

0 comments on commit ed6430c

Please sign in to comment.