mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-23 20:51:12 +08:00
Allow extending config used in eslint-loader (#7036)
This commit is contained in:
10
packages/react-scripts/scripts/eject.js
vendored
10
packages/react-scripts/scripts/eject.js
vendored
@@ -239,10 +239,12 @@ inquirer
|
||||
};
|
||||
|
||||
// Add ESlint config
|
||||
console.log(` Adding ${cyan('ESLint')} configuration`);
|
||||
appPackage.eslintConfig = {
|
||||
extends: 'react-app',
|
||||
};
|
||||
if (!appPackage.eslintConfig) {
|
||||
console.log(` Adding ${cyan('ESLint')} configuration`);
|
||||
appPackage.eslintConfig = {
|
||||
extends: 'react-app',
|
||||
};
|
||||
}
|
||||
|
||||
fs.writeFileSync(
|
||||
path.join(appPath, 'package.json'),
|
||||
|
||||
Reference in New Issue
Block a user