The ~/.elm folder should be moved to $XDG_DATA_HOME/elm when possible.
Some notes about this motivation: https://0x46.net/thoughts/2019/02/01/dotfile-madness/
References: https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
For anyone else searching for this, you can set the $ELM_HOME environment variable to that path to get this behaviour.
I have set $ELM_HOME but stuff still seems to be getting downloaded into ~/.elm
Does anyone have suggestions on how to debug this?
Was it only introduced in version 0.19?
After continued investigation, I raised this on the elm slack, where it was confirmed that ELM_HOME is not supported in 0.18, which is why I was having the issue.
Most helpful comment
For anyone else searching for this, you can set the
$ELM_HOMEenvironment variable to that path to get this behaviour.