You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no syntax in the Elm language to declare the Elm version directly within a source file itself.
Notably, Unibeautify needs to support formatting unnamed blobs of code that are not saved into any file. For this, the only option would be --elm-version. We need to add an equivalent option to the Unibeautify configuration file. @Glavin001@stevenzeck Opinions on where and how to do this?
(Ping @avh4 in case you are interested. Unibeautify may be the most complex/generic real world use case for elm-format since Unibeautify is very generic itself.)
The text was updated successfully, but these errors were encountered:
I would like to be able to specify the language version (like es5 versus es6 for JavaScript, Python 2 or 3, Elm version, etc) and without an options changing (such as end-with-comma) it will adapt appropriately.
Currently elm-format supports two mutually incompatible versions of Elm and needs to know which version code is written for.
elm-format can do this by:
--elm-version
command line optionelm.json
orelm-package.json
in the current directory (the policy of which directories to look in may change in the next version of elm-format, see auto-detect elm version per file, instead of based on cwd avh4/elm-format#561)There is no syntax in the Elm language to declare the Elm version directly within a source file itself.
Notably, Unibeautify needs to support formatting unnamed blobs of code that are not saved into any file. For this, the only option would be
--elm-version
. We need to add an equivalent option to the Unibeautify configuration file. @Glavin001 @stevenzeck Opinions on where and how to do this?(Ping @avh4 in case you are interested. Unibeautify may be the most complex/generic real world use case for elm-format since Unibeautify is very generic itself.)
The text was updated successfully, but these errors were encountered: