diff --git a/README.md b/README.md index 0d8172f..fde34e8 100644 --- a/README.md +++ b/README.md @@ -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`. @@ -62,7 +64,7 @@ yarn add --dev husky In `package.json`, add: -``` +```json "husky": { "hooks": { "pre-commit": "pretty-quick --staged"