Skip to content

Commit

Permalink
Remove eslintConfig from package.json (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
fson authored and gaearon committed Sep 14, 2016
1 parent 052336d commit f4a53ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
5 changes: 0 additions & 5 deletions scripts/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 1 addition & 4 deletions template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ You would need to install an ESLint plugin for your editor first.
><img src="http://i.imgur.com/yVNNHJM.png" width="300">
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
{
Expand All @@ -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
Expand Down

0 comments on commit f4a53ee

Please sign in to comment.