diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json new file mode 100644 index 000000000..d66cf4958 --- /dev/null +++ b/.config/dotnet-tools.json @@ -0,0 +1,18 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "husky": { + "version": "0.6.3", + "commands": [ + "husky" + ] + }, + "csharpier": { + "version": "0.26.3", + "commands": [ + "dotnet-csharpier" + ] + } + } +} \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100644 index 000000000..aae8aedea --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,5 @@ +#!/bin/sh +# shellcheck source=/dev/null +. "$(dirname "$0")/_/husky.sh" + +dotnet husky run diff --git a/.husky/task-runner.json b/.husky/task-runner.json new file mode 100644 index 000000000..14c8259c5 --- /dev/null +++ b/.husky/task-runner.json @@ -0,0 +1,16 @@ +{ + "tasks": [ + { + "name": "Run csharpier", + "command": "dotnet", + "args": [ + "csharpier", + "${staged}" + ], + "include": [ + "**/*.cs" + ] + } + ] + } + \ No newline at end of file diff --git a/Refit/Refit.csproj b/Refit/Refit.csproj index 2cee3866c..fc232e0a7 100644 --- a/Refit/Refit.csproj +++ b/Refit/Refit.csproj @@ -8,6 +8,12 @@ enable + + + + +