@@ -69,7 +69,8 @@ indent_size=4
6969max_line_length =150
7070
7171# Either crlf | lf, default is system-dependent (when not specified at all)
72- # end_of_line=crlf
72+ # lf matches the eol .gitattributes stores F# files with, so formatting does not touch line endings
73+ end_of_line =lf
7374
7475# Whether end-of-file has a newline, default=true
7576insert_final_newline =true
@@ -94,8 +95,8 @@ fsharp_space_before_uppercase_invocation=true
9495# default false
9596fsharp_space_before_class_constructor =true
9697
97- # false: __. member Foo(x) = x
98- # true: __. member Foo (x) = x
98+ # false: member this. Foo(x) = x
99+ # true: member this. Foo (x) = x
99100# default false
100101fsharp_space_before_member =true
101102
@@ -119,18 +120,18 @@ fsharp_space_before_semicolon=false
119120# default true
120121fsharp_space_after_semicolon =true
121122
122- # false: let a = [1;2; 3]
123- # true: let a = [ 1;2; 3 ]
123+ # false: let a = [1; 2; 3]
124+ # true: let a = [ 1; 2; 3 ]
124125# default true
125126fsharp_space_around_delimiter =true
126127
127128# breaks an if-then-else in smaller parts if it is on one line
128- # default 40
129+ # default 60
129130fsharp_max_if_then_else_short_width =60
130131
131132# breaks an infix operator expression if it is on one line
132133# infix: a + b + c
133- # default 50
134+ # default 80
134135fsharp_max_infix_operator_expression =60
135136
136137# breaks a single-line record declaration
@@ -151,7 +152,7 @@ fsharp_max_record_number_of_items=1
151152fsharp_record_multiline_formatter =character_width
152153
153154# breaks a single line array or list if it exceeds this size
154- # default 40
155+ # default 80
155156fsharp_max_array_or_list_width =100
156157
157158# breaks an array or list into one item per line if items exceeds this number
@@ -166,7 +167,7 @@ fsharp_max_array_or_list_number_of_items=1
166167# default character_width
167168fsharp_array_or_list_multiline_formatter =character_width
168169
169- # maximum with of a value binding, does not include keyword "let"
170+ # maximum width of a value binding, does not include keyword "let"
170171# default 80
171172fsharp_max_value_binding_width =100
172173
@@ -187,17 +188,18 @@ fsharp_max_function_binding_width=80
187188# From: float
188189# To: float
189190# }
190- # default cramped
191+ # default aligned
191192fsharp_multiline_bracket_style =stroustrup
192193
193- # whether to move the beginning of compuitation expression to the new line
194+ # whether to move the beginning of computation expression to the new line
194195# true: let x =
195196# computation {
196197# ...
197198# }
198199# false: let x = computation {
199200# ..
200201# }
202+ # default true
201203fsharp_newline_before_multiline_computation_expression =false
202204
203205# whether a newline should be placed before members
@@ -208,7 +210,7 @@ fsharp_newline_before_multiline_computation_expression=false
208210# { From: float }
209211#
210212# member this.Length = this.To - this.From
211- # default false
213+ # default true
212214fsharp_newline_between_type_definition_and_members =true
213215
214216# if a function sign exceeds max_line_length, then:
@@ -217,15 +219,16 @@ fsharp_newline_between_type_definition_and_members=true
217219# default false
218220fsharp_align_function_signature_to_indentation =false
219221
220- # see docs: https://github.com/fsprojects/ fantomas/blob/master/ docs/Documentation.md #fsharp_alternative_long_member_definitions
222+ # see docs: https://fsprojects. github.io/ fantomas/docs/end-users/Configuration.html #fsharp_alternative_long_member_definitions
221223# default false
222224fsharp_alternative_long_member_definitions =false
223225
224226# places closing paren in lambda on a newline in multiline lambdas
225227# default false
226228fsharp_multi_line_lambda_closing_newline =false
227229
228- # allows the 'else'-branch to be aligned at same level as 'else' if the ret type allows it
230+ # keeps the last branch of if/then/else or match at the same indentation as the expression (early-return style)
231+ # see docs: https://fsprojects.github.io/fantomas/docs/end-users/Configuration.html#fsharp_experimental_keep_indent_in_branch
229232# false: match x with
230233# | null -> ()
231234# | _ -> ()
@@ -248,4 +251,5 @@ fsharp_blank_lines_around_nested_multiline_expressions=false
248251
249252# set maximal number of consecutive blank lines to keep from original source
250253# it doesn't change number of new blank lines generated by Fantomas
254+ # default 100
251255fsharp_keep_max_number_of_blank_lines =2
0 commit comments