Skip to content

Commit

Permalink
Add eslintConfig to new projects automatically (facebook#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 4f8a889 commit 8687677
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8687677

Please sign in to comment.