@@ -3,7 +3,8 @@ root = true
33# Core EditorConfig Options #
44# ##############################
55# All files
6- # [*] # Do not apply to all files not to break something
6+ [* ] # Do not apply to all files not to break something
7+ guidelines = 120 dashed, 150
78# Either crlf | lf, default is system-dependent (when not specified at all)
89# end_of_line=crlf
910# Remove whitespace at the end of any line
@@ -123,11 +124,6 @@ fsharp_space_before_semicolon=false
123124# default true
124125fsharp_space_after_semicolon =true
125126
126- # false: no indent after `with` in a `try-with`
127- # true: must indent after `with` in a `try-with`
128- # default false
129- fsharp_indent_on_try_with =false
130-
131127# false: let a = [1;2;3]
132128# true: let a = [ 1;2;3 ]
133129# default true
@@ -187,17 +183,31 @@ fsharp_max_function_binding_width=80
187183# default 50
188184fsharp_max_dot_get_expression_width =80
189185
190- # whether open/close brackets go on same colum
191- # false: type Range =
192- # { From: float
193- # To: float }
194- # true: type Range =
195- # {
196- # From: float
197- # To: float
198- # }
199- # default false
200- fsharp_multiline_block_brackets_on_same_column =false
186+ # whether open/close brackets go on the same column
187+ # cramped: type Range =
188+ # { From: float
189+ # To: float }
190+ # aligned: type Range =
191+ # {
192+ # From: float
193+ # To: float
194+ # }
195+ # stroustrup: type Range = {
196+ # From: float
197+ # To: float
198+ # }
199+ # default cramped
200+ fsharp_multiline_bracket_style =stroustrup
201+
202+ # whether to move the beginning of compuitation expression to the new line
203+ # true: let x =
204+ # computation {
205+ # ...
206+ # }
207+ # false: let x = computation {
208+ # ..
209+ # }
210+ fsharp_newline_before_multiline_computation_expression =false
201211
202212# whether a newline should be placed before members
203213# false: type Range =
@@ -210,18 +220,6 @@ fsharp_multiline_block_brackets_on_same_column=false
210220# default false
211221fsharp_newline_between_type_definition_and_members =true
212222
213- # deprecated setting, has no effect anymore
214- # default false
215- fsharp_keep_if_then_in_same_line =true
216-
217- # configures max width of Elmish expressions
218- # default 40
219- fsharp_max_elmish_width =40
220-
221- # Applies to Elmish expressions
222- # default false
223- fsharp_single_argument_web_mode =false
224-
225223# if a function sign exceeds max_line_length, then:
226224# false: do not place the equal-sign on a single line
227225# true: place the equal-sign on a single line
@@ -236,9 +234,6 @@ fsharp_alternative_long_member_definitions=false
236234# default false
237235fsharp_multi_line_lambda_closing_newline =false
238236
239- # disables Elmish syntax parsing
240- fsharp_disable_elmish_syntax =true
241-
242237# allows the 'else'-branch to be aligned at same level as 'else' if the ret type allows it
243238# false: match x with
244239# | null -> ()
@@ -248,22 +243,22 @@ fsharp_disable_elmish_syntax=true
248243# | _ ->
249244# ()
250245# default false
251- fsharp_experimental_keep_indent_in_branch =true
246+ fsharp_keep_indent_in_branch =true
252247
253248# multiline, nested expressions must be surrounded by blank lines
254249# default true
255- fsharp_blank_lines_around_nested_multiline_expressions =true
250+ fsharp_blank_lines_around_nested_multiline_expressions =false
256251
257252# whether a bar is placed before DU
258253# false: type MyDU = Short of int
259254# true: type MyDU = | Short of int
260255# default false
261256fsharp_bar_before_discriminated_union_declaration =false
262257
263- # whether to use stroustrup style for records, lists and CEs
264- # To work reliably, fsharp_multiline_block_brackets_on_same_column must be " true"
265- fsharp_experimental_stroustrup_style = true
258+ # multiline, nested expressions must be surrounded by blank lines
259+ # default true
260+ fsharp_blank_lines_around_nested_multiline_expressions = false
266261
267- # from docs: Please do not use this setting for formatting hand written code!
268- # default false
269- fsharp_strict_mode = false
262+ # set maximal number of consecutive blank lines to keep from original source
263+ # it doesn't change number of new blank lines generated by Fantomas
264+ fsharp_keep_max_number_of_blank_lines = 2
0 commit comments