Skip to content

Commit d1207d2

Browse files
authored
Use simple-git-hooks in examples (#955)
1 parent feb663b commit d1207d2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ Prior to version 10, tasks had to manually include `git add` as the final step.
353353
354354
## Examples
355355
356-
All examples assuming you’ve already set up lint-staged and husky in the `package.json`.
356+
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`.
357357
358358
```json
359359
{
@@ -362,10 +362,8 @@ All examples assuming you’ve already set up lint-staged and husky in the `pack
362362
"scripts": {
363363
"my-custom-script": "linter --arg1 --arg2"
364364
},
365-
"husky": {
366-
"hooks": {
367-
"pre-commit": "lint-staged"
368-
}
365+
"simple-git-hooks": {
366+
"pre-commit": "npx lint-staged"
369367
},
370368
"lint-staged": {}
371369
}

0 commit comments

Comments
 (0)