elm-format
6.1#9 in code formattersFree planFree planLinuxmacOSWindows
Visit
| Fact | elm-format | Prettier |
|---|---|---|
| Command line | The command line can format a single Elm file or all Elm files in a directory, and can overwrite files with the --yes option. | The install guide documents running `prettier --write` to rewrite files and `prettier --check` in CI to detect unformatted files. |
| Editor integrations | The README lists integrations for Atom, Light Table, Vim, Emacs, Visual Studio Code, Sublime Text, JetBrains IDEs, and TextMate. | The official site lists integrations or support for VS Code, WebStorm, Visual Studio, Vim, Emacs, Sublime Text, Nova and Espresso. |
elm-format suits Elm developers and teams who want a consistent format from the command line or an editor integration. It is also relevant when formatting on save or using the library API is useful.
It suits developers who want consistent code formatting across supported languages and editors. Teams needing additional languages can use plugins, while those using ESLint can follow the documented integration guidance.