FA

Fantomas

Fantomas code formatter for F#

Details

Language / Topic
fsharpF#
Category
Linter / Formatter

Rules

balanced
- Run `dotnet fantomas .` to format all F# files — configure it via `.editorconfig` or `fantomasOptions` in the project file.
- Add `dotnet fantomas --check .` to CI pipelines to reject unformatted code before merge.
- Never manually adjust indentation or alignment — Fantomas is the single source of formatting truth.
- Use `.editorconfig` to set `indent_size = 4` and `fsharp_max_line_length = 120` consistently across the team.