mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-24 05:05:53 +08:00
Fix ESLint 6 support (#7513)
* Remove extends restriction to fix ESLint 6 support * Attempt to resolve CI errors
This commit is contained in:
committed by
Ian Sutherland
parent
4a84cd4c70
commit
cbaed7f9ff
@@ -347,14 +347,8 @@ module.exports = function(webpackEnv) {
|
||||
// A config couldn't be found.
|
||||
}
|
||||
|
||||
// We allow overriding the config, only if it extends our config
|
||||
// (`extends` can be a string or array of strings).
|
||||
if (
|
||||
process.env.EXTEND_ESLINT &&
|
||||
eslintConfig &&
|
||||
eslintConfig.extends &&
|
||||
eslintConfig.extends.includes('react-app')
|
||||
) {
|
||||
// We allow overriding the config only if the env variable is set
|
||||
if (process.env.EXTEND_ESLINT && eslintConfig) {
|
||||
return eslintConfig;
|
||||
} else {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user