elm-format
elm-format copied to clipboard
elm-format formats Elm source code according to a standard set of rules based on the official Elm Style Guide
I noticed in the code for package.elm-lang.org that @evancz wrote [a case-expression](https://github.com/elm/package.elm-lang.org/blob/6d817cde29ddc94271d4b1b9614aa55895c5027c/src/frontend/Main.elm#L176-L180) where each branch is a single line: ```elm case model.page of NotFound session -> session Search m ->...
Should single-line let declaractions (and possibly also top-level declaractions) be allowed? If so, what should the rules related to that be? - One proposal from https://github.com/avh4/elm-format/issues/507#issuecomment-426995482 is to only allow...
When writing conditionals, I frequently want to format using newlines. Say I have the following snippet from using elm/parser: ```elm chompWhile (\c -> c /= '[' && c/= '*' &&...
We can't in general know the operator precedence because that would break the goal of being able to format any code consistently without having to have more info from the...
I'm excited about this project ! I was wondering if it would be possible to also support formatting of a block of text. Why would you need that you might...
- https://serokell.io/blog/haskell-with-utf8
In style-elements, the most common function is: ```elm el : List Attribute -> Element -> Element ``` Which leads to multiline usage of `
See rules here: https://spec.commonmark.org/0.29/#example-537