Skip to content

Commit

Permalink
Add eslintConfig to new projects automatically (#1457)
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeiscontent authored and Timer committed Sep 21, 2018
1 parent dc74990 commit 8af019b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/react-scripts/scripts/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ module.exports = function(
test: 'react-scripts test --env=jsdom',
eject: 'react-scripts eject',
};

// Setup the eslint config
appPackage.eslintConfig = {
'extends': 'react-app'
};

fs.writeFileSync(
path.join(appPath, 'package.json'),
Expand Down

0 comments on commit 8af019b

Please sign in to comment.