Skip to content

Commit

Permalink
Fix extends logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmckeb committed May 13, 2019
1 parent 6547b31 commit 3565973
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ module.exports = function(webpackEnv) {
// We allow overriding the config, only if it extends our config
// (`extends` can be a string or array of strings).
appPackageJson.eslintConfig &&
appPackageJson.eslintConfig.extends &&
appPackageJson.eslintConfig.extends.includes('react-app')
? appPackageJson.eslintConfig
: { extends: [require.resolve('eslint-config-react-app')] },
Expand Down

0 comments on commit 3565973

Please sign in to comment.