elm-format icon indicating copy to clipboard operation
elm-format copied to clipboard

feature request: Automatically convert snake_case to camelCase

Open showell opened this issue 6 years ago • 1 comments

I think the title here mostly explains what I want. Feel free to close if this is out of scope of the formatter.

My experience coming to Elm is that I have a lot of muscle_memory that makes me type out names like get_previous_locations, and I'd be happy to just have the formatter fix it for me.

The only exceptions are edge cases like can_go_n_spaces, where camel case is kinda ugly (canGoNSpaces), but not terrible. (I'd possibly want names with only one character between underscores to be a warning, so I could come up with a nicer name, rather than auto-convert.)

showell avatar Oct 12 '19 10:10 showell

The problem I see with this is that it changes the API of the code you write, so I think it's out of scope. OTOH this looks like a perfect fit for https://github.com/jfmengels/elm-review

miniBill avatar Oct 12 '19 10:10 miniBill