chore: add husky + prettier/dotnet format pre-commit

This commit is contained in:
sam 2024-10-01 22:35:17 +02:00
parent aa756ac56a
commit eac0a17473
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
6 changed files with 60 additions and 2 deletions

21
.husky/task-runner.json Normal file
View 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"
]
}
]
}