fire-eggs / CivOne

An open source implementation of Sid Meier's Civilization 1 using C# and .NET.
Creative Commons Zero v1.0 Universal
20 stars 4 forks source link

Code Style: Force linters do the all work for you #157

Open iegik opened 2 years ago

iegik commented 2 years ago

There is lint-staged and husky that are often used in frontend project to lint changed code basing on editorsettings/pretiiter/sharpier before it goes to git.

Need to research is there something similar (git-hook based) without npm integration (without package.json file) https://blog.johnnyreilly.com/2020/12/22/prettier-your-csharp-with-dotnet-format-and-lint-staged/