Skip to content

Commit 016da4d

Browse files
committed
chore: update .editorconfig
1 parent bd238a4 commit 016da4d

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

.editorconfig

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,39 @@
1-
root = true
1+
# top-most EditorConfig file
2+
root = true
23

34
[*]
5+
charset = utf-8
6+
end_of_line = lf
47
indent_style = space
8+
indent_size = 2
59
insert_final_newline = true
6-
indent_style = space
710
trim_trailing_whitespace = true
811

9-
[*.{sh,yaml,yml,rules}]
10-
charset = utf-8
11-
indent_size = 2
12-
end_of_line = lf
13-
14-
[*{_AssemblyInfo.cs,.notsupported.cs}]
15-
generated_code = true
12+
# 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)
13+
spelling_exclusion_path = ./exclusion.dic
1614

17-
# C# files
1815
[*.cs]
19-
charset = utf-8-bom
2016
indent_size = 4
17+
charset = utf-8-bom
18+
end_of_line = unset
19+
20+
# Solution files
21+
[*.{sln,slnx}]
22+
end_of_line = unset
23+
24+
# MSBuild project files
25+
[*.{csproj,props,targets}]
26+
end_of_line = unset
27+
28+
# Xml config files
29+
[*.{ruleset,config,nuspec,resx,runsettings,DotSettings}]
30+
end_of_line = unset
31+
32+
[*{_AssemblyInfo.cs,.notsupported.cs}]
33+
generated_code = true
2134

35+
# C# code style settings
36+
[*.{cs}]
2237
csharp_style_namespace_declarations = file_scoped
2338
dotnet_style_require_accessibility_modifiers = never
2439

0 commit comments

Comments
 (0)