Skip to content

Commit

Permalink
Fix pre-commit hook setup command (#10710)
Browse files Browse the repository at this point in the history
  • Loading branch information
bokub authored May 9, 2021
1 parent c8c02b4 commit 7cfa9aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/precommit.md
Original file line number Diff line number Diff line change
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

0 comments on commit 7cfa9aa

Please sign in to comment.