Skip to content

Commit f4a53ee

Browse files
fsongaearon
authored andcommitted
Remove eslintConfig from package.json (#649)
1 parent 052336d commit f4a53ee

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

Diff for: scripts/init.js

-5
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ module.exports = function(appPath, appName, verbose, originalDirectory) {
3030
'eject': 'react-scripts eject'
3131
};
3232

33-
// explicitly specify ESLint config path for editor plugins
34-
appPackage.eslintConfig = {
35-
extends: './node_modules/react-scripts/config/eslint.js',
36-
};
37-
3833
fs.writeFileSync(
3934
path.join(appPath, 'package.json'),
4035
JSON.stringify(appPackage, null, 2)

Diff for: template/README.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ You would need to install an ESLint plugin for your editor first.
157157
158158
><img src="http://i.imgur.com/yVNNHJM.png" width="300">
159159
160-
Then make sure `package.json` of your project ends with this block:
160+
Then add this block to the `package.json` file of your project:
161161

162162
```js
163163
{
@@ -168,9 +168,6 @@ Then make sure `package.json` of your project ends with this block:
168168
}
169169
```
170170

171-
Projects generated with `react-scripts@0.2.0` and higher should already have it.
172-
If you don’t need ESLint integration with your editor, you can safely delete those three lines from your `package.json`.
173-
174171
Finally, you will need to install some packages *globally*:
175172

176173
```sh

0 commit comments

Comments
 (0)