-
Notifications
You must be signed in to change notification settings - Fork 885
Expand ordered-imports to support import alias = a.b.c.d; #4591
Comments
What kind of "handling" would you like to see? I doubt the rule does anything smart / special with those kinds of import aliases right now. Have you tried it? |
The codebase I am starting to work with uses this pattern, I have not used it before. I will have to implement or help implement TSLint support on this new codebase. This came up in a discussion about how we should promote import statement types. So before corrupting a full TFVC branch with my changes I thought I would inquire about this. |
Looking at #4810, this would be a breaking change to allow the rule to also parse Edit: we should also talk about how the desired sorting & grouping for these should work. How can the rule's configuration indicate where to put these? Using |
@JoshuaKGoldberg Thanks for looking into this! |
Oh no, a bug! Would you mind filing a separate issue for the bug? We might be able to resolve that separately and more quickly than the discussion of supporting namespace imports. |
Sure thing! I opened #4815, hope it helps! |
Removing the |
@itanex after thinking about this a bit, I'm going to go ahead and close this issue. 😢 Thanks for bringing this up and participating in the discussion! A couple followups you could take on:
|
@JoshuaKGoldberg True, this was made back in March before it was widely known that TS lint was approaching EOL. Moving this over to ESLint is the best move, while |
Rule Suggestion
More of a clarification on Ordered Imports. How does it actually handle this? I could not find any details.
How are the aliasing imports here designed to sort by this rule? If it is not part of this rule, shouldn't it be since these are imports? Is there another rule that is handling this?
Is your rule for a general problem or is it specific to your development style?
Clarification mainly. But perhaps a suggestion to enhance coverage of Ordered Imports.
What does your suggested rule do?
Handle import aliasing.
Not
List several examples where your rule could be used
Additional context
The text was updated successfully, but these errors were encountered: