Skip to content

Commit 214e1f1

Browse files
committed
Simplify instructions
1 parent 3371fd9 commit 214e1f1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

readme.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,17 @@ UpLeveled ESLint defaults for programming in JavaScript, TypeScript, React and N
99
To add ESLint configuration to a project, install the dependencies and add the config files:
1010

1111
```sh
12-
yarn add --dev @upleveled/eslint-config-upleveled
12+
npx install-peerdeps --yarn --dev @upleveled/eslint-config-upleveled
1313
npx install-peerdeps --yarn --dev -o eslint-config-react-app
14-
npx install-peerdeps --yarn --dev -o @upleveled/eslint-config-upleveled
1514
cp node_modules/@upleveled/eslint-config-upleveled/templates/.eslintrc.js ./
1615
cp node_modules/@upleveled/eslint-config-upleveled/templates/tsconfig.json ./
1716
```
1817

19-
If you have a monorepo using Yarn Workspaces and would like to install the config in the root, change the first three lines to these:
18+
If you have a monorepo using Yarn Workspaces and would like to install the config in the root, change the first two lines to these:
2019

2120
```sh
22-
yarn add -W --dev @upleveled/eslint-config-upleveled
21+
npx install-peerdeps --yarn --dev @upleveled/eslint-config-upleveled --extra-args "-W"
2322
npx install-peerdeps --yarn --dev -o eslint-config-react-app --extra-args "-W"
24-
npx install-peerdeps --yarn --dev -o @upleveled/eslint-config-upleveled --extra-args "-W"
2523
```
2624

2725
<!--

0 commit comments

Comments
 (0)