Skip to content

Commit

Permalink
doc: update npx usage for v3
Browse files Browse the repository at this point in the history
  • Loading branch information
azz authored Sep 16, 2020
1 parent 30699de commit 8c994bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ yarn pretty-quick
With [`npx`](https://npm.im/npx):

```shellsession
npx pretty-quick
npx -p prettier@latest -p pretty-quick pretty-quick
```

> Note: You can (_should_) change `latest` to a specific version of Prettier.
With `npm`:

1. Add `"pretty-quick": "pretty-quick"` to the `"scripts"` section of `package.json`.
Expand All @@ -62,7 +64,7 @@ yarn add --dev husky

In `package.json`, add:

```
```json
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
Expand Down

0 comments on commit 8c994bc

Please sign in to comment.