From b41160744d6c5e751fec43a94aae4bc9596a0642 Mon Sep 17 00:00:00 2001 From: Aaron Reisman Date: Fri, 27 Jan 2017 16:46:52 +0700 Subject: [PATCH] Add eslintConfig to new projects automatically --- packages/react-scripts/scripts/init.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/react-scripts/scripts/init.js b/packages/react-scripts/scripts/init.js index 864005ecac2..1e14729dfbc 100644 --- a/packages/react-scripts/scripts/init.js +++ b/packages/react-scripts/scripts/init.js @@ -29,6 +29,11 @@ module.exports = function(appPath, appName, verbose, originalDirectory, template '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'),