Simpler editor integration
Two small improvements should make integration with code editors smoother with
When installed with
elm-format startup time has been reduced by 70% (roughly 150ms).
elm-format will now assume it should work in Elm 0.19 mode if autodetection of your Elm version fails.
If you still need to work with Elm 0.18 code, you must make sure that either
elm-format is run from the directory containing your
elm-package.json file (and there must not be a
elm.json file in that directory), or
elm-format must be invoked with the
The feature of automatically expanding
exposing (..) in
module lines has been removed.
While exposing everything in a module is an anti-pattern for production code,
it can be useful for rapid development sketches when the interfaces of your modules are not important.
To replace the old expansion behavior,
elm-format now allows
module lines without an
exposing clause. Such lines will have the
exposing automatically generated using the same logic that was previously used to expand
elm-format 0.8.2 also contains several bug fixes and other small changes.
See the CHANGELOG for details.
npm install -g elm-format