Skip to content

Commit cd2191f

Browse files
vulong23bondz
vulong23
authored andcommitted
Edit User Guide: Add ESLint config for VS Code users (facebook#1482)
* 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
1 parent bfbb9bb commit cd2191f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/react-scripts/template/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,18 @@ You would need to install an ESLint plugin for your editor first.
185185
186186
><img src="http://i.imgur.com/yVNNHJM.png" width="300">
187187
188+
189+
>**For Visual Studio Code users**
190+
191+
>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:
192+
193+
>```js
194+
{
195+
// ...
196+
"extends": "react-app"
197+
}
198+
```
199+
188200
Then add this block to the `package.json` file of your project:
189201

190202
```js

0 commit comments

Comments
 (0)