Skip to content

Commit 8af019b

Browse files
lifeiscontentTimer
authored andcommitted
Add eslintConfig to new projects automatically (facebook#1457)
1 parent dc74990 commit 8af019b

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
@@ -42,6 +42,11 @@ module.exports = function(
4242
test: 'react-scripts test --env=jsdom',
4343
eject: 'react-scripts eject',
4444
};
45+
46+
// Setup the eslint config
47+
appPackage.eslintConfig = {
48+
'extends': 'react-app'
49+
};
4550

4651
fs.writeFileSync(
4752
path.join(appPath, 'package.json'),

0 commit comments

Comments
 (0)