EVERYTHING XIAOMI
Get listed
Side by side

elm-format vs Prettier

elm-format

6.1#9 in code formattersFree plan
Free planLinuxmacOSWindows
Visit
Prettier logo

Prettier

7.6#1 in code formatting toolsFree plan
Free planWebAPIExtensionLinux
Visit

What both publish

Factelm-formatPrettier
Command lineThe 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 integrationsThe 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 plans

  • elm-formatFree

Prettier plans

  • Open-source PrettierFree
  • PrettierFree

Pick elm-format if…

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.

Pick Prettier if…

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.

Charts they share