Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Fix pre-commit hook setup command #10710

Merged
merged 1 commit into from May 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/precommit.md
Expand Up @@ -31,15 +31,15 @@ Install it along with [husky](https://github.com/typicode/husky):
```bash
npx husky-init
npm install --save-dev pretty-quick
npx husky set .husky/pre-commit "pretty-quick --staged"
npx husky set .husky/pre-commit "npx pretty-quick --staged"
```

<!--yarn-->

```bash
npx husky-init # add --yarn2 for Yarn 2
yarn add --dev pretty-quick
yarn husky set .husky/pre-commit "pretty-quick --staged"
yarn husky set .husky/pre-commit "npx pretty-quick --staged"
```

<!--END_DOCUSAURUS_CODE_TABS-->
Expand Down