Skip to content

Commit

Permalink
Update Husky.Net info (#13883)
Browse files Browse the repository at this point in the history
Co-authored-by: fisker Cheung <lionkay@gmail.com>
  • Loading branch information
DavidDeSloovere and fisker committed Dec 15, 2022
1 parent 521de3b commit df1f6ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/precommit.md
Expand Up @@ -66,9 +66,10 @@ Read more at [mirror of prettier package for pre-commit](https://github.com/pre-
**Use Case:** A dotnet solution to use Prettier along with other code quality tools (e.g. dotnet-format, ESLint, Stylelint, etc.). It supports multiple file states (staged - last-commit, git-files etc.)

```bash
dotnet new tool-manifest
dotnet tool install husky
dotnet husky install
dotnet husky add .husky/pre-commit
dotnet husky add pre-commit
```

after installation you can add prettier task to the `task-runner.json`.
Expand Down
3 changes: 2 additions & 1 deletion website/versioned_docs/version-stable/precommit.md
Expand Up @@ -67,9 +67,10 @@ Read more at [mirror of prettier package for pre-commit](https://github.com/pre-
**Use Case:** A dotnet solution to use Prettier along with other code quality tools (e.g. dotnet-format, ESLint, Stylelint, etc.). It supports multiple file states (staged - last-commit, git-files etc.)

```bash
dotnet new tool-manifest
dotnet tool install husky
dotnet husky install
dotnet husky add .husky/pre-commit
dotnet husky add pre-commit
```

after installation you can add prettier task to the `task-runner.json`.
Expand Down

0 comments on commit df1f6ad

Please sign in to comment.