-
Notifications
You must be signed in to change notification settings - Fork 200
misnamed-import warning for import A from '.' #378
Comments
I also experienced this: via
|
I tried a quick stab at this but then I realized that I'm not sure what a good way to reliably get a module's name is. The code just takes anything after the final I don't know enough about how typescript works to know how to figure out the module name despite this, so if someone knows more that would be great! |
Broken due to this issue: microsoft/tslint-microsoft-contrib#378
The rule should just ignore imports of the format |
If this is still up, I can have a go at it. |
- ignore dotted paths `.`, `..`
@Dgaduin oops, sorry I didn't notice you grabbed it. I'm not sure my fix is correct though. |
This seems to be still broken, using "tslint-microsoft-contrib": "^6.1.1",
It's exported like this:
What am I doing wrong? |
@dougmolineux could you please create separate issue using full template (with all versions specified)? It was really easy to miss comment on closed issue and I'm unable to reproduce problem on version tslint-microsoft-contrib/src/importNameRule.ts Lines 249 to 252 in bfc28e9
|
@IllusionMH sure thing, will do. |
Here's a somewhat edge-case example of what I've stumbled on:
Here's what I get:
I wrote a tslint issue on this(palantir/tslint#2878) but was told to write the issue here.
ps: I can do a walk-around using:
but I don't like doing tricks to please Mr Linter :(
The text was updated successfully, but these errors were encountered: