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
Currently, cue fmt doesn't seem to build out a canonical ordering for imports. It makes it slightly annoying to look at the top of a file with a number of imports to see what is being used.
As far as I can tell, the ordering of the imports within the import statement has no bearing on the evaluated result, so it seems like this would be a nice way to increase the consistency of the experience.
Prior art here:
Javascript ecosystem uses prettier which doesn't sort imports but javascript has side effects on import
Similar issue with python and black.
Both support other tools (import sort plugin and isort respectively) which handle import sorting and grouping for you.
Go has go fmt which doesn't handle imports, but also supports goimports.
Clang-format supports sorting with options.
The text was updated successfully, but these errors were encountered:
Currently,
cue fmt
doesn't seem to build out a canonical ordering for imports. It makes it slightly annoying to look at the top of a file with a number of imports to see what is being used.As far as I can tell, the ordering of the imports within the import statement has no bearing on the evaluated result, so it seems like this would be a nice way to increase the consistency of the experience.
Prior art here:
Javascript ecosystem uses prettier which doesn't sort imports but javascript has side effects on import
Similar issue with python and black.
Both support other tools (import sort plugin and isort respectively) which handle import sorting and grouping for you.
Go has
go fmt
which doesn't handle imports, but also supportsgoimports
.Clang-format supports sorting with options.
The text was updated successfully, but these errors were encountered: