mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-23 04:40:23 +08:00
Add eslintConfig to new projects automatically (#1457)
This commit is contained in:
committed by
Joe Haddad
parent
5254ffebca
commit
2aaf71eed0
5
packages/react-scripts/scripts/init.js
vendored
5
packages/react-scripts/scripts/init.js
vendored
@@ -97,6 +97,11 @@ module.exports = function(
|
||||
test: 'react-scripts test --env=jsdom',
|
||||
eject: 'react-scripts eject',
|
||||
};
|
||||
|
||||
// Setup the eslint config
|
||||
appPackage.eslintConfig = {
|
||||
'extends': 'react-app'
|
||||
};
|
||||
|
||||
appPackage.browserslist = defaultBrowsers;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user