-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fix] no-duplicates
: Handle TS import type
#1676
Conversation
1 similar comment
typescript-estree v2.23.0 has been released which contains support for the It doesn't touch the |
@kmui2 it seems like tests are failing :-/ |
@ljharb I'll upgrade to typescript-eslint 2.23.0 and see if they pass. Seems they added the import type support. |
Worth a shot; but |
I think the tests ran before |
Still some failures :-/ |
I'll come back again and fix the tests. They seem to just fail whenever ESLINT_VERSION >= 4. |
Let's try to handle |
I'm not sure what's going on with I had it passing with ESLint at v6.x.x on my local. |
I'm really stuck here with the test for Node 13 w/ ESLint version 6. Need to pull in help on this. I am not able to reproduce this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've rebased this, and it passes, so ¯\_(ツ)_/¯
@ljharb, big thanks on helping finally get this merged! I realize I haven't created a test for the |
Thanks, that'd be great :-) |
Fixes #1667
Don't merge yet!This PR contains a new test for TypeScript 3.8's new
import type
syntax. However, TypeScript 3.8 is still not supported yet for TypeScript ESLint! See #1667 (comment).Updates the following TypeScript packages.
As of this TypeScript ESLint package version, it will continue to produce the following error until TypeScript ESLint gains support for TypeScript 3.8 (progress can be tracked here):
Update
TypeScript 3.8 import type is now supported in TypeScript ESLint v2.23.0: https://github.com/typescript-eslint/typescript-eslint/releases/tag/v2.23.0