minor tweaks to .editorconfig

This commit is contained in:
Jesse Plamondon-Willard 2017-08-14 21:26:33 -04:00
parent 72d42ddff8
commit da4708337b
1 changed files with 8 additions and 1 deletions

View File

@ -12,13 +12,16 @@ insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
[*.csproj]
indent_size = 2
insert_final_newline = false
[*.json]
indent_size = 2
##########
## C# formatting
## documentation: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
## some undocumented settings from: https://github.com/dotnet/roslyn/blob/master/.editorconfig
##########
[*.cs]
@ -47,6 +50,7 @@ dotnet_style_explicit_tuple_names = true:suggestion
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion
csharp_prefer_simple_default_expression = true:suggestion
# prefer method block bodies
csharp_style_expression_bodied_methods = false:suggestion
@ -59,3 +63,6 @@ csharp_style_expression_bodied_accessors = true:suggestion
# prefer inline out variables
csharp_style_inlined_variable_declaration = true:warning
# avoid superfluous braces
csharp_prefer_braces = false:suggestion