Skip to content

Commit 8326dd5

Browse files
committed
style: try make code more consistent and align HTML DSL to 4 spaces indentation
1 parent ae05ce5 commit 8326dd5

File tree

2 files changed

+829
-505
lines changed

2 files changed

+829
-505
lines changed

.editorconfig

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ root = true
33

44
[*]
55
end_of_line = lf
6-
7-
[*.{fs,fsi,fsx}]
86
charset = utf-8
9-
end_of_line = lf
107
indent_style = space
118
indent_size = 4
129
trim_trailing_whitespace = true
@@ -16,5 +13,19 @@ fsharp_max_array_or_list_width=120
1613
fsharp_max_infix_operator_expression=80
1714
fsharp_max_value_binding_width=120
1815

16+
# Specific settings for "View/HTML" related files
17+
# It makes the code more consistent in term of spacing and indentation
1918
[GenerateHtml.fs]
20-
fsharp_experimental_elmish = true
19+
fsharp_experimental_elmish = true
20+
fsharp_array_or_list_multiline_formatter = number_of_items
21+
fsharp_max_array_or_list_number_of_items = 0
22+
fsharp_multi_line_lambda_closing_newline = true
23+
fsharp_multiline_bracket_style = aligned
24+
fsharp_keep_max_number_of_blank_lines = 1
25+
fsharp_align_function_signature_to_indentation = true
26+
# Keep the if/then/else consistent
27+
fsharp_max_if_then_else_short_width = 0
28+
# Keep records consistent
29+
fsharp_max_record_number_of_items = 0
30+
fsharp_record_multiline_formatter = number_of_items
31+
fsharp_alternative_long_member_definitions = true

0 commit comments

Comments
 (0)