Skip to content

Commit

Permalink
Replace pretty-quick with lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
bokub committed Aug 31, 2023
1 parent 5859ee1 commit 1c6f077
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,7 @@ yarn add -D prettier @bokub/prettier-config
#### _Optional:_ Setup pre-commit hook with husky

```bash
# With npm
npx husky-init
npm i -D pretty-quick
npx husky set .husky/pre-commit "npx pretty-quick --staged"

# With yarn
npx husky-init # add --yarn2 for Yarn 2
yarn add -D pretty-quick
yarn husky set .husky/pre-commit "npx pretty-quick --staged"
npx mrm@2 lint-staged
```

#### _Optional:_ Run prettier on existing code
Expand Down

0 comments on commit 1c6f077

Please sign in to comment.