Skip to content

Commit

Permalink
Avoid prompt from npx
Browse files Browse the repository at this point in the history
npx prompt content:

```
Need to install the following packages:
  install-peerdeps
Ok to proceed? (y)
```

Ref: npm/cli#1935
  • Loading branch information
karlhorky committed Feb 1, 2021
1 parent 7ea8026 commit dfe9435
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ UpLeveled ESLint defaults for programming in JavaScript, TypeScript, React and N
To add ESLint configuration to a project, install the dependencies and add the config files:

```sh
npx install-peerdeps --yarn --dev @upleveled/eslint-config-upleveled
npx install-peerdeps --yarn --dev --only-peers eslint-config-react-app
CI=true npx install-peerdeps --yarn --dev @upleveled/eslint-config-upleveled
CI=true npx install-peerdeps --yarn --dev --only-peers eslint-config-react-app
cp node_modules/@upleveled/eslint-config-upleveled/templates/{*,.eslint*} .
grep -Fxq ".eslintcache" .gitignore || echo ".eslintcache" >> .gitignore
```

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:

```sh
npx install-peerdeps --yarn --dev @upleveled/eslint-config-upleveled --extra-args "-W"
npx install-peerdeps --yarn --dev --only-peers eslint-config-react-app --extra-args "-W"
CI=true npx install-peerdeps --yarn --dev @upleveled/eslint-config-upleveled --extra-args "-W"
CI=true npx install-peerdeps --yarn --dev --only-peers eslint-config-react-app --extra-args "-W"
```

<!--
Expand Down

0 comments on commit dfe9435

Please sign in to comment.