From f85a806a6ffba6eca6ed047e65f814dae8b843c5 Mon Sep 17 00:00:00 2001 From: glopesdev Date: Mon, 21 Sep 2026 00:25:23 +0100 Subject: [PATCH] Align the editorconfig with the shared template YAML files now have their own section, which pins the charset to UTF-8, and the collection expression and range operator suggestions are turned off. --- .editorconfig | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 50adbc3..78cf875 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,14 +4,18 @@ root = true indent_style = space #-------------------------------------------------------------------------------------------------- -# XML, JSON, and web files +# XML, JSON, YAML, and web files #-------------------------------------------------------------------------------------------------- [*.{xml,csproj,vcxproj,vcxproj.filters,shproj,props,targets,config,resx,vstemplate,slnx}] indent_size = 2 -[*.{json,yml}] +[*.json] indent_size = 2 +[*.{yml,yaml}] +indent_size = 2 +charset = utf-8 + [*.{html,css}] indent_size = 2 @@ -39,3 +43,7 @@ dotnet_style_predefined_type_for_member_access = true:suggestion # Instantiate argument exceptions correctly dotnet_diagnostic.CA2208.severity = warning + +# Don't complain about not using modern collection syntax +dotnet_style_prefer_collection_expression = never +csharp_style_prefer_range_operator = false