Skip to content

Commit 8b6d82a

Browse files
ryanvanossbeefancohen
authored andcommitted
Change npm install to npm i for consistency in documentation. (#144)
* Add yarn installation commands.
1 parent e7e2443 commit 8b6d82a

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,24 @@ Ryan Florence built out this awesome runtime-analysis tool called [react-a11y](h
3434
You'll first need to install [ESLint](http://eslint.org):
3535

3636
```sh
37-
$ npm i eslint --save-dev
37+
# npm
38+
npm install eslint --save-dev
39+
40+
# yarn
41+
yarn add eslint --dev
3842
```
3943

4044
Next, install `eslint-plugin-jsx-a11y`:
4145

4246
```sh
43-
$ npm install eslint-plugin-jsx-a11y --save-dev
47+
# npm
48+
npm install eslint-plugin-jsx-a11y --save-dev
49+
50+
# yarn
51+
yarn add eslint-plugin-jsx-a11y --dev
4452
```
4553

46-
**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-jsx-a11y` globally.
54+
**Note:** If you installed ESLint globally (using the `-g` flag in npm, or the `global` prefix in yarn) then you must also install `eslint-plugin-jsx-a11y` globally.
4755

4856
## Usage
4957

0 commit comments

Comments
 (0)