Consistent formatting in a codebase is a good thing. We can achieve this in dotnet using dotnet format
, used in combination with the npm packages husky
and lint-staged
. This post shows how.
dotnet-format: Prettier your C# with lint-staged & husky
· 5 min read