Skip to content

Commit

Permalink
Use simple-git-hooks in examples (#955)
Browse files Browse the repository at this point in the history
  • Loading branch information
ai authored Mar 23, 2021
1 parent feb663b commit d1207d2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ Prior to version 10, tasks had to manually include `git add` as the final step.
## Examples
All examples assuming you’ve already set up lint-staged and husky in the `package.json`.
All examples assuming you’ve already set up lint-staged and [simple-git-hooks](https://github.com/toplenboren/simple-git-hooks) in the `package.json`.
```json
{
Expand All @@ -362,10 +362,8 @@ All examples assuming you’ve already set up lint-staged and husky in the `pack
"scripts": {
"my-custom-script": "linter --arg1 --arg2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {}
}
Expand Down

0 comments on commit d1207d2

Please sign in to comment.