Skip to content

Commit

Permalink
docs: update global-usage in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Mar 23, 2022
1 parent 2145e29 commit 6720200
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,11 @@ React specific linting rules for `eslint`

# Installation

Install [`eslint`](https://www.github.com/eslint/eslint) either locally or globally. (Note that locally, per project, is strongly preferred)

```sh
$ npm install eslint@7 --save-dev
$ npm install eslint@7 eslint-plugin-react --save-dev
```

If you installed `eslint` globally, you have to install the React plugin globally too. Otherwise, install it locally (strongly preferred)

```sh
$ npm install eslint-plugin-react --save-dev
```
It is also possible to install ESLint globally rather than locally (using npm install eslint --global). However, this is not recommended, and any plugins or shareable configs that you use must be installed locally in either case.

# Configuration

Expand Down

0 comments on commit 6720200

Please sign in to comment.