SAFE-template icon indicating copy to clipboard operation
SAFE-template copied to clipboard

Move from fantomas-tool to fantomas

Open isaacabraham opened this issue 3 years ago • 4 comments

With the imminent release of Fantomas 5, we should upgrade the dotnet-tools.json:

-"fantomas-tool": {
+"fantomas": {
-  "version": "4.7.1",
+  "version": "5.0.0",
  "commands": [
    "fantomas"
  ]
},

We also need to update .editorconfig as follows:

-[src/Client/*.fs]
-# Feliz style
-fsharp_single_argument_web_mode=true
+fsharp_multiline_block_brackets_on_same_column = true
+fsharp_experimental_stroustrup_style = true

isaacabraham avatar Sep 12 '22 20:09 isaacabraham

@nojaf is this roughly correct?

isaacabraham avatar Sep 12 '22 20:09 isaacabraham

Yes, that will do the trick.

On a side note: I would also advise to change insert_final_newline = false to true. See link

nojaf avatar Sep 13 '22 05:09 nojaf

Will do. Any reason why this isn't the default then? :-)

isaacabraham avatar Sep 14 '22 13:09 isaacabraham

It is the default in Fantomas, but the .editorconfig of the template seems to have put it on false.

nojaf avatar Sep 14 '22 14:09 nojaf