From cd2191ff298e1fe2a93a925e6fe449d8f2ce9f7c Mon Sep 17 00:00:00 2001 From: vulong23 Date: Sat, 4 Feb 2017 23:47:19 +0700 Subject: [PATCH] Edit User Guide: Add ESLint config for VS Code users (#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 --- packages/react-scripts/template/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/react-scripts/template/README.md b/packages/react-scripts/template/README.md index 2e7b76e18ed..2f4e2fdf1ef 100644 --- a/packages/react-scripts/template/README.md +++ b/packages/react-scripts/template/README.md @@ -185,6 +185,18 @@ You would need to install an ESLint plugin for your editor first. > + +>**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