Skip to content

Commit 2aaf71e

Browse files
lifeiscontentTimer
authored andcommitted
Add eslintConfig to new projects automatically (facebook#1457)
1 parent 5254ffe commit 2aaf71e

File tree

1 file changed

+5
-0
lines changed
  • packages/react-scripts/scripts

1 file changed

+5
-0
lines changed

packages/react-scripts/scripts/init.js

+5
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ module.exports = function(
9797
test: 'react-scripts test --env=jsdom',
9898
eject: 'react-scripts eject',
9999
};
100+
101+
// Setup the eslint config
102+
appPackage.eslintConfig = {
103+
'extends': 'react-app'
104+
};
100105

101106
appPackage.browserslist = defaultBrowsers;
102107

0 commit comments

Comments
 (0)