Skip to content
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

[no-unused-vars] 请教下,typescript导入interface报的no-unused-vars怎么解决 #65

Open
cadleo opened this issue Apr 29, 2019 · 3 comments

Comments

@cadleo
Copy link

@cadleo cadleo commented Apr 29, 2019

typescript导入interface作为变量类型使用,但eslint似乎是将它识别为导入了变量,会报的no-unused-vars,怎么解决

@xiaohaiH

This comment has been minimized.

Copy link

@xiaohaiH xiaohaiH commented Apr 29, 2019

关闭 eslint 的 no-unused-vars,开启 ts 的
no-unused-vars 提示就行

@cadleo

This comment has been minimized.

Copy link
Author

@cadleo cadleo commented Apr 30, 2019

好的,3Q

@xcatliu xcatliu changed the title 请教下,typescript导入interface报的no-unused-vars怎么解决 [no-unused-vars] 请教下,typescript导入interface报的no-unused-vars怎么解决 Jun 5, 2019
@xcatliu

This comment has been minimized.

Copy link
Member

@xcatliu xcatliu commented Jun 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.