Skip to content

Commit 2ba58a8

Browse files
authored
chore: Enable whitespace triming in EditorConfig (dotnet#31669)
1 parent 6ac198c commit 2ba58a8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.editorconfig

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ root = true
1010
insert_final_newline = true
1111
indent_style = space
1212
indent_size = 4
13+
trim_trailing_whitespace = true
1314

1415
[project.json]
1516
indent_size = 2
@@ -49,7 +50,7 @@ dotnet_naming_symbols.static_fields.applicable_kinds = field
4950
dotnet_naming_symbols.static_fields.required_modifiers = static
5051
dotnet_naming_symbols.static_fields.applicable_accessibilities = private, internal, private_protected
5152
dotnet_naming_style.static_prefix_style.required_prefix = s_
52-
dotnet_naming_style.static_prefix_style.capitalization = camel_case
53+
dotnet_naming_style.static_prefix_style.capitalization = camel_case
5354

5455
# internal and private fields should be _camelCase
5556
dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion
@@ -58,7 +59,7 @@ dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_
5859
dotnet_naming_symbols.private_internal_fields.applicable_kinds = field
5960
dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal
6061
dotnet_naming_style.camel_case_underscore_style.required_prefix = _
61-
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
62+
dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case
6263

6364
# Code quality
6465
dotnet_style_readonly_field = true:suggestion
@@ -199,5 +200,11 @@ indent_size = 2
199200
# Shell scripts
200201
[*.sh]
201202
end_of_line = lf
203+
202204
[*.{cmd, bat}]
203205
end_of_line = crlf
206+
207+
# Markdown files
208+
[*.md]
209+
# Double trailing spaces can be used for BR tags, and other instances are enforced by Markdownlint
210+
trim_trailing_whitespace = false

0 commit comments

Comments
 (0)