root = true

[*]
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space

[*.{cs,csx}]
indent_size = 4
end_of_line = crlf

dotnet_sort_system_directives_first = true
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
dotnet_style_qualification_for_method = false:suggestion
dotnet_style_require_accessibility_modifiers = always:warning
dotnet_style_readonly_field = true:warning

csharp_style_namespace_declarations = file_scoped:warning
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_new_line_before_open_brace = all
csharp_prefer_braces = true:warning
csharp_style_prefer_primary_constructors = false:none

[*.{json,yml,yaml}]
indent_size = 2

[*.{js,mjs,ts,tsx,css,html}]
indent_size = 2

[*.{ps1,psm1}]
indent_size = 4

[*.{csproj,props,targets,wixproj,wxs}]
indent_size = 2
