chore: add husky + prettier/dotnet format pre-commit
This commit is contained in:
parent
aa756ac56a
commit
eac0a17473
6 changed files with 60 additions and 2 deletions
21
.husky/task-runner.json
Normal file
21
.husky/task-runner.json
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"$schema": "https://alirezanet.github.io/Husky.Net/schema.json",
|
||||
"tasks": [
|
||||
{
|
||||
"name": "run-prettier",
|
||||
"command": "yarn",
|
||||
"args": [
|
||||
"format",
|
||||
"${staged}"
|
||||
],
|
||||
"pathMode": "absolute"
|
||||
},
|
||||
{
|
||||
"name": "dotnet-format",
|
||||
"command": "dotnet",
|
||||
"args": [
|
||||
"format"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue