elm-format icon indicating copy to clipboard operation
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

Results 123 elm-format issues
Sort by recently updated
recently updated
newest added

Elm itself requires the following of `case` branches: - all branches have the same indentation - the indentation of branches is greater than the indentation of `case` Ideally, elm-format should...

lenient parser

A brief mention of some high-level goals are mentioned in the README, but there's a lot more undocumented about the philosophy. For this this issue will be a place for...

documentation

Proposal: If a line gets longer than _X_ characters, automatically split it across multiple lines (if possible), to try to make all lines fit within _X_ characters. What should _X_...

discussion

I sometimes see functions with the following type annotation: ```elm fun : a -> b -> (c -> d) ``` which is equivalent to ```elm fun : a -> b...

discussion

### Concrete use case Here’s a thing I see a lot in the code base at work: ```elm selectHighlightedItem selectedMsg viewModel model = (itemIndexPairAt model.highlightedIndex viewModel.itemIndexPairs |> Maybe.map Tuple.second )...

discussion
0.9
full operators list

# Summary I'd like to propose a way to make function declarations more readable, especially functions that take more than one or two arguments. Consider this declaration from the core...

discussion
0.9

Thank you for this awesome project! Thank to release artifacts, installation of `elm-format` on a glibc based linux system is a simple task of downloading `elm-format-0.x.x-linux-x64.tgz` asset. I was wondering...

```elm let a = 1 in let b = 2 in a + b ``` should merge the two blocks of definitions. Are there any cases where this changes the...

small
in-progress

``` $ elm-format --validate xxx [There was a problem reading one or more of the specified input files: xxx: File does not exist Please check the given paths. ``` Should...

bug
small

In the spirit of targeting 1.0 being used in core libraries, I did a diff with `elm/core` using [Allow single-line `if` expressions](https://github.com/avh4/elm-format/pull/648) and [Allow single-line case-expressions branches](https://github.com/avh4/elm-format/pull/649) to see if...