Formatting Elm Code
Elm comes with it's own formatter.
elm-format src/
It's got options like --upgrade
which will help you get from 0.18 code to 0.19 code, and its got --validate
which you can use in continuous integration to ensure all PRs are properly formatted.
In vim, formatting is enabled by default when you use elm-vim.
Tweet