1+ # Top-most EditorConfig file
2+ # See https://editorconfig.org for more information
3+
4+ # Root of the .editorconfig file
5+ root = true
6+
7+ # C# files (for Blazor)
8+ [* .cs ]
9+ # Use spaces for indentation
10+ indent_style = space
11+ # Set the indentation width to 4 spaces
12+ indent_size = 4
13+ # Ensure a newline at the end of the file
14+ end_of_line = lf
15+ # Trim trailing whitespace
16+ trim_trailing_whitespace = true
17+ # Insert a final newline
18+ insert_final_newline = true
19+ # Set the charset to UTF-8
20+ charset = utf-8
21+ # C# code formatting options
22+ dotnet_style_prefer_implicit_array_type = true
23+ dotnet_style_prefer_collection_initializer = true
24+ dotnet_style_prefer_implicit_object_creation = true
25+ csharp_indent_labels = one_less_than_current
26+ csharp_using_directive_placement = outside_namespace:silent
27+ csharp_prefer_simple_using_statement = true :suggestion
28+ csharp_prefer_braces = true :silent
29+ csharp_style_namespace_declarations = block_scoped:silent
30+ csharp_style_prefer_method_group_conversion = true :silent
31+ csharp_style_prefer_top_level_statements = true :silent
32+ csharp_style_prefer_primary_constructors = true :suggestion
33+ csharp_prefer_system_threading_lock = true :suggestion
34+ csharp_style_expression_bodied_methods = false :silent
35+ csharp_style_expression_bodied_constructors = false :silent
36+ csharp_style_expression_bodied_operators = false :silent
37+ csharp_style_expression_bodied_properties = true :silent
38+ csharp_style_expression_bodied_indexers = true :silent
39+ csharp_style_expression_bodied_accessors = true :silent
40+ csharp_style_expression_bodied_lambdas = true :silent
41+ csharp_style_expression_bodied_local_functions = false :silent
42+
43+ # Razor files (.razor)
44+ [* .razor ]
45+ # Use spaces for indentation
46+ indent_style = space
47+ # Set the indentation width to 4 spaces
48+ indent_size = 4
49+ # Ensure a newline at the end of the file
50+ end_of_line = lf
51+ # Trim trailing whitespace
52+ trim_trailing_whitespace = true
53+ # Insert a final newline
54+ insert_final_newline = true
55+ # Set the charset to UTF-8
56+ charset = utf-8
57+
58+ # JavaScript and TypeScript files (if you're using them for frontend)
59+ [* .{js,ts} ]
60+ indent_style = space
61+ indent_size = 2
62+ end_of_line = lf
63+ trim_trailing_whitespace = true
64+ insert_final_newline = true
65+
66+ # HTML files (for Blazor's HTML components)
67+ [* .html ]
68+ indent_style = space
69+ indent_size = 2
70+ end_of_line = lf
71+ trim_trailing_whitespace = true
72+ insert_final_newline = true
73+
74+ # JSON files
75+ [* .json ]
76+ indent_style = space
77+ indent_size = 2
78+ end_of_line = lf
79+ trim_trailing_whitespace = true
80+ insert_final_newline = true
81+
82+ # CSS/SCSS files
83+ [* .{css,scss} ]
84+ indent_style = space
85+ indent_size = 2
86+ end_of_line = lf
87+ trim_trailing_whitespace = true
88+ insert_final_newline = true
89+
90+ [* .{cs,vb} ]
91+ # ### Naming styles ####
92+
93+ # Naming rules
94+
95+ dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
96+ dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
97+ dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
98+
99+ dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
100+ dotnet_naming_rule.types_should_be_pascal_case.symbols = types
101+ dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
102+
103+ dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
104+ dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
105+ dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
106+
107+ # Symbol specifications
108+
109+ dotnet_naming_symbols.interface.applicable_kinds = interface
110+ dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
111+ dotnet_naming_symbols.interface.required_modifiers =
112+
113+ dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
114+ dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
115+ dotnet_naming_symbols.types.required_modifiers =
116+
117+ dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
118+ dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
119+ dotnet_naming_symbols.non_field_members.required_modifiers =
120+
121+ # Naming styles
122+
123+ dotnet_naming_style.begins_with_i.required_prefix = I
124+ dotnet_naming_style.begins_with_i.required_suffix =
125+ dotnet_naming_style.begins_with_i.word_separator =
126+ dotnet_naming_style.begins_with_i.capitalization = pascal_case
127+
128+ dotnet_naming_style.pascal_case.required_prefix =
129+ dotnet_naming_style.pascal_case.required_suffix =
130+ dotnet_naming_style.pascal_case.word_separator =
131+ dotnet_naming_style.pascal_case.capitalization = pascal_case
132+
133+ dotnet_naming_style.pascal_case.required_prefix =
134+ dotnet_naming_style.pascal_case.required_suffix =
135+ dotnet_naming_style.pascal_case.word_separator =
136+ dotnet_naming_style.pascal_case.capitalization = pascal_case
137+ dotnet_style_operator_placement_when_wrapping = beginning_of_line
138+ tab_width = 4
139+ indent_size = 4
140+ end_of_line = lf
141+ dotnet_style_coalesce_expression = true :suggestion
142+ dotnet_style_null_propagation = true :suggestion
143+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true :suggestion
144+ dotnet_style_prefer_auto_properties = true :silent
0 commit comments