2018-03-20 10:43:18 +01:00
|
|
|
# editorconfig.org
|
2017-08-14 18:21:48 +02:00
|
|
|
|
2018-03-20 10:43:18 +01:00
|
|
|
# top-most EditorConfig file
|
|
|
|
|
root = true
|
|
|
|
|
|
|
|
|
|
# Default settings:
|
|
|
|
|
# A newline ending every file
|
|
|
|
|
# Use 4 spaces as indentation
|
2017-08-14 18:21:48 +02:00
|
|
|
[*]
|
2018-03-20 10:43:18 +01:00
|
|
|
insert_final_newline = true
|
2018-07-06 12:26:14 +02:00
|
|
|
end_of_line = crlf
|
2017-08-14 18:21:48 +02:00
|
|
|
indent_style = space
|
|
|
|
|
indent_size = 4
|
|
|
|
|
|
2018-03-20 10:43:18 +01:00
|
|
|
# Trim trailing whitespace, limited support.
|
|
|
|
|
# https://github.com/editorconfig/editorconfig/wiki/Property-research:-Trim-trailing-spaces
|
|
|
|
|
trim_trailing_whitespace = true
|
2018-04-30 23:29:44 +10:00
|
|
|
|
|
|
|
|
[*.{cs,vb}]
|
|
|
|
|
dotnet_style_predefined_type_for_locals_parameters_members = true:error
|
|
|
|
|
|
|
|
|
|
dotnet_naming_rule.private_members_with_underscore.symbols = private_fields
|
|
|
|
|
dotnet_naming_rule.private_members_with_underscore.style = prefix_underscore
|
|
|
|
|
dotnet_naming_rule.private_members_with_underscore.severity = suggestion
|
|
|
|
|
|
|
|
|
|
dotnet_naming_symbols.private_fields.applicable_kinds = field
|
|
|
|
|
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
|
2020-02-19 15:38:22 +11:00
|
|
|
# dotnet_naming_symbols.private_fields.required_modifiers = abstract,async,readonly,static # all except const
|
2018-04-30 23:29:44 +10:00
|
|
|
|
|
|
|
|
dotnet_naming_style.prefix_underscore.capitalization = camel_case
|
2018-09-06 14:10:10 +02:00
|
|
|
dotnet_naming_style.prefix_underscore.required_prefix = _
|
|
|
|
|
|
|
|
|
|
# https://github.com/MicrosoftDocs/visualstudio-docs/blob/master/docs/ide/editorconfig-code-style-settings-reference.md
|
|
|
|
|
[*.cs]
|
|
|
|
|
csharp_style_var_for_built_in_types = true:suggestion
|
|
|
|
|
csharp_style_var_when_type_is_apparent = true:suggestion
|
2018-12-20 16:58:01 +11:00
|
|
|
csharp_style_var_elsewhere = true:suggestion
|
2020-02-17 08:52:05 +01:00
|
|
|
csharp_prefer_braces = false : none
|
2019-01-18 10:12:24 +01:00
|
|
|
|
2020-08-06 12:59:21 +02:00
|
|
|
[*.js]
|
|
|
|
|
trim_trailing_whitespace = true
|
|
|
|
|
|
|
|
|
|
[*.less]
|
2020-02-17 08:52:05 +01:00
|
|
|
trim_trailing_whitespace = false
|