Skip to content

Commit 9b4a4f8

Browse files
committed
chore: update .editorconfig
1 parent a07efbd commit 9b4a4f8

File tree

1 file changed

+16
-24
lines changed

1 file changed

+16
-24
lines changed

.editorconfig

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,44 +3,36 @@ root = true
33

44
[*]
55
charset = utf-8
6+
end_of_line = lf
67
indent_style = space
7-
indent_size = 4
8-
insert_final_newline=true
9-
trim_trailing_whitespace=true
8+
indent_size = 2
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
1011

1112
# Visual Studio Spell checker configs (https://learn.microsoft.com/en-us/visualstudio/ide/text-spell-checker?view=vs-2022#how-to-customize-the-spell-checker)
1213
spelling_exclusion_path = ./exclusion.dic
1314

15+
[*.cs]
16+
indent_size = 4
17+
charset = utf-8-bom
18+
end_of_line = unset
19+
1420
# Solution files
1521
[*.{sln,slnx}]
16-
indent_size = 2
22+
end_of_line = unset
1723

1824
# MSBuild project files
1925
[*.{csproj,props,targets}]
20-
indent_size = 2
26+
end_of_line = unset
2127

2228
# Xml config files
2329
[*.{ruleset,config,nuspec,resx,runsettings,DotSettings}]
24-
indent_size = 2
25-
26-
# JSON files
27-
[*.json]
28-
indent_size = 2
29-
30-
# YAML files
31-
[*.{yml,yaml}]
32-
indent_size = 2
33-
34-
# PowerShell files
35-
[*.ps1]
36-
indent_size = 2
37-
38-
# Markdown files
39-
[*.md]
40-
charset = utf-8-bom
41-
trim_trailing_whitespace = false
30+
end_of_line = unset
4231

4332
# C# code style settings
4433
[*.{cs}]
34+
dotnet_diagnostic.IDE0044.severity = none # IDE0044: Make field readonly
4535

46-
## TODO: Define custom settings
36+
# https://stackoverflow.com/questions/79195382/how-to-disable-fading-unused-methods-in-visual-studio-2022-17-12-0
37+
dotnet_diagnostic.IDE0051.severity = none # IDE0051: Remove unused private member
38+
dotnet_diagnostic.IDE0130.severity = none # IDE0130: Namespace does not match folder structure

0 commit comments

Comments
 (0)