Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Commit

Permalink
Update .editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
xin9le committed Nov 9, 2021
1 parent 8f6c6f7 commit bf974d9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@ root = true
[*]
indent_style = space
end_of_line = crlf
# (Please don't specify an indent_size here; that has too many unintended consequences.)

# Code files
[*.{cs,csx,vb,vbx,ts,js,css,less}]
indent_size = 4
insert_final_newline = true
charset = utf-8-bom

# Razor files
[*.{cshtml,razor}]
indent_size = 4
charset = utf-8-bom

# Xml project files
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
indent_size = 4
Expand All @@ -32,6 +36,9 @@ indent_size = 4

# CSharp
[*.cs]
dotnet_code_quality_unused_parameters = all:silent
dotnet_code_quality.ca1822.api_surface = private

dotnet_sort_system_directives_first = true
dotnet_style_qualification_for_field = true
dotnet_style_qualification_for_property = true
Expand All @@ -41,3 +48,4 @@ dotnet_style_qualification_for_event = true
csharp_prefer_simple_using_statement = false:none
csharp_style_deconstructed_variable_declaration = false:none
csharp_style_pattern_matching_over_as_with_null_check = false:none
csharp_style_namespace_declarations =file_scoped:suggestion

0 comments on commit bf974d9

Please sign in to comment.