skclusive / Skclusive.Material.Component

Port of Material-UI in C# for Blazor
https://skclusive.github.io/Skclusive.Blazor.Samples/Dashboard
MIT License
397 stars 54 forks source link

Add .editorconfig #73

Closed BrunoZell closed 3 years ago

BrunoZell commented 3 years ago

Coming from #71, this adds an .editorconfig at the repository root with some defaults as observed from existing code. I added the file to the solution in the sub-folder Globals.

Rule CA1304 is configured as an error. All erroneous places are fixed.

I couldn't figure out how to analyze Razor files as well, so the advantage of this is very limited, unfortunately. I also tried the following with no success.

[*.razor.g.cs]
generated_code = false
dotnet_diagnostic.CA1304.severity = error

It might be a good idea to add dotnet naming rules to make it easier for others to contribute without running into formatting issues.

skclusive commented 3 years ago

great. thanks for the contribution. does this work in dotnet cli also?

please feel free to add naming rules also. unfortunately i am not familiar with editor configs, naming rules and CI/CD. i manually build and release nuget packages. :( so glad to get contributions. :)

if you have other items that could help getting contributions, please feel free to do so.

skclusive commented 3 years ago

also thanks for targeting develop branch.

BrunoZell commented 3 years ago

Yes, this works with the CLI.