Reasonml has it’s own format tool,
refmt which is installable via npm:
npm install -g firstname.lastname@example.org
At the command line you should use the
--in-place option to overwrite the specified file with the formatted code output by the tool.
> refmt --in-place src/App.re
Otherwise refmt writes to stdout, but rerouting that stdout to the same file will just truncate the file.Tweet