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
Hello, great plugin. I think this is more of a feature request than a bug, but when using typescript path aliases it organizes the global imports from inside the project first than the node_modules global imports.
Expected sorting
global node_modules imports
global project imports (defined by path aliases)
relative imports
But with path aliases (depending on the configuration), global project imports will appear first before the node_modules imports. Right now there's no distinction between global node_modules and global project imports.
Afaik TypeScript doesn't care at all where the import comes from, it just sorts them alphabetically? TBH I also really don't care about the order, I usually don't even look at the import statements anymore... so I couldn't care less how exactly they are sorted, as long as it's consistent (i. e. doesn't cause any merge conflicts/weird git diffs).
Hello, great plugin. I think this is more of a feature request than a bug, but when using typescript path aliases it organizes the global imports from inside the project first than the node_modules global imports.
Expected sorting
But with path aliases (depending on the configuration), global project imports will appear first before the node_modules imports. Right now there's no distinction between global node_modules and global project imports.
tsconfig.json:
file system:
Home.js expected order:
Instead the result is:
@/shared/log
will be aliased after compilation to../shared/log
, so I expect it to be afterreact
which is a node_module importThe text was updated successfully, but these errors were encountered: