From 4c3a4b90c6d1ebcbdc8edba6905782065404a93e Mon Sep 17 00:00:00 2001 From: Ville Immonen Date: Wed, 14 Sep 2016 18:39:49 +0300 Subject: [PATCH] Remove eslintConfig from package.json --- scripts/init.js | 5 ----- template/README.md | 5 +---- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/scripts/init.js b/scripts/init.js index 0b5282ae1df..e440a830699 100644 --- a/scripts/init.js +++ b/scripts/init.js @@ -30,11 +30,6 @@ module.exports = function(appPath, appName, verbose, originalDirectory) { 'eject': 'react-scripts eject' }; - // explicitly specify ESLint config path for editor plugins - appPackage.eslintConfig = { - extends: './node_modules/react-scripts/config/eslint.js', - }; - fs.writeFileSync( path.join(appPath, 'package.json'), JSON.stringify(appPackage, null, 2) diff --git a/template/README.md b/template/README.md index 05ef2b43aa9..46f2e991056 100644 --- a/template/README.md +++ b/template/README.md @@ -157,7 +157,7 @@ You would need to install an ESLint plugin for your editor first. > -Then make sure `package.json` of your project ends with this block: +Then add this block to the `package.json` file of your project: ```js { @@ -168,9 +168,6 @@ Then make sure `package.json` of your project ends with this block: } ``` -Projects generated with `react-scripts@0.2.0` and higher should already have it. -If you don’t need ESLint integration with your editor, you can safely delete those three lines from your `package.json`. - Finally, you will need to install some packages *globally*: ```sh