stil4m / elm-syntax

Elm syntax in Elm
MIT License
92 stars 26 forks source link

Make sure file comments are sorted #179

Closed jfmengels closed 1 year ago

jfmengels commented 1 year ago

This sorts comments from closest to furthest from the start of the file. Previously, the order was somewhat random, as can be seen in this temporary commit

We already do this sorting in elm-review, but it feels off to have to do it there. This will make it more consistent as well, since declarations and imports are in "normal" order but comments weren't.

Can be reviewed commit by commit.