Skip to content

Commit

Permalink
Edit User Guide: Add ESLint config for VS Code users (facebook#1482)
Browse files Browse the repository at this point in the history
* Add ESLint config for VS Code users

* Update VSC ESLint note to a better solution 

Update VSC ESLint note to a better solution as discussed in Pull Request
  • Loading branch information
vulong23 authored and Daniel Figueiredo committed Feb 22, 2017
1 parent da57b9e commit 87bd3cb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/react-scripts/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,18 @@ You would need to install an ESLint plugin for your editor first.
><img src="http://i.imgur.com/yVNNHJM.png" width="300">

>**For Visual Studio Code users**
>VS Code ESLint plugin automatically detects Create React App's configuration file. So you do not need to create `eslintrc.json` at the root directory, except when you want to add your own rules. In that case, you should include CRA's config by adding this line:
>```js
{
// ...
"extends": "react-app"
}
```
Then add this block to the `package.json` file of your project:

```js
Expand Down

0 comments on commit 87bd3cb

Please sign in to comment.