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

Use simple-git-hooks in examples #955

Merged
merged 1 commit into from Mar 23, 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
8 changes: 3 additions & 5 deletions README.md
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