Skip to content

Commit df1f6ad

Browse files
Update Husky.Net info (#13883)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
1 parent 521de3b commit df1f6ad

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

docs/precommit.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ Read more at [mirror of prettier package for pre-commit](https://github.com/pre-
6666
**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.)
6767
6868
```bash
69+
dotnet new tool-manifest
6970
dotnet tool install husky
7071
dotnet husky install
71-
dotnet husky add .husky/pre-commit
72+
dotnet husky add pre-commit
7273
```
7374

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

website/versioned_docs/version-stable/precommit.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ Read more at [mirror of prettier package for pre-commit](https://github.com/pre-
6767
**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.)
6868
6969
```bash
70+
dotnet new tool-manifest
7071
dotnet tool install husky
7172
dotnet husky install
72-
dotnet husky add .husky/pre-commit
73+
dotnet husky add pre-commit
7374
```
7475

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

0 commit comments

Comments
 (0)