Add elm-format (#100)

* feat: add elm-format

* fix: master => main

* Update elm-format.bash

Co-authored-by: Radon Rosborough <radon.neon@gmail.com>
This commit is contained in:
Ellis Kenyő 2022-09-03 18:57:40 +01:00 committed by GitHub
parent 04366a90df
commit 4d59a9b696
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 0 deletions

View file

@ -17,10 +17,12 @@ The format is based on [Keep a Changelog].
(e.g. scalafmt), do not erase the buffer ([#116]).
### Formatters
* [elm-format](https://github.com/avh4/elm-format) for Elm ([#100]).
* [bean-format](https://github.com/beancount/beancount) for Beancount
([#101]).
* [stylua](https://github.com/JohnnyMorganz/StyLua) for Lua ([#105]).
[#100]: https://github.com/radian-software/apheleia/pull/100
[#101]: https://github.com/radian-software/apheleia/pull/101
[#105]: https://github.com/radian-software/apheleia/pull/105
[#109]: https://github.com/radian-software/apheleia/issues/109

View file

@ -923,6 +923,7 @@ being run, for diagnostic purposes."
(brittany . ("brittany"))
(clang-format . ("clang-format"))
(dart-format . ("dart" "format"))
(elm-format . ("elm-format" "--yes" "--stdin"))
(fish-indent . ("fish_indent"))
(gofmt . ("gofmt"))
(google-java-format . ("google-java-format" "-"))
@ -1056,6 +1057,7 @@ function: %s" command)))
(css-mode . prettier)
(dart-mode . dart-format)
(elixir-mode . mix-format)
(elm-mode . elm-format)
(fish-mode . fish-indent)
(go-mode . gofmt)
(haskell-mode . brittany)

View file

@ -0,0 +1 @@
npm install -g elm-format

View file

@ -0,0 +1,2 @@
import Html exposing (text)
main = text "Hello!"

View file

@ -0,0 +1,7 @@
module Main exposing (main)
import Html exposing (text)
main =
text "Hello!"