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

False positive `no-undef` in TypeScript with interface #1099

Closed
kinyat opened this issue Mar 26, 2018 · 8 comments

Comments

@kinyat
Copy link

commented Mar 26, 2018

see: eslint/typescript-eslint-parser#416

The problem with using StandardJS is that we do not have control on the rules thus we cannot turn off no-undef.

I hope we can add some config for TypeScript to turn this rule off.

Or allow user to turn off some of the rules.

@ColtonProvias

This comment has been minimized.

Copy link

commented Mar 26, 2018

It should be noted that abstract classes and class members inherited from abstract classes also throw this error.

@lukasoppermann

This comment has been minimized.

Copy link
Contributor

commented Jun 29, 2018

Having the same issue, @feross is there a solution for this yet? Isn't there a way to specify configs for this somehow? Due to this issue I can't use standard anymore with typescript. Which sucks because standard is really awesome.

Please help.

Btw. a workaround is to add the interface to the globals in the files that use them:

/* global HTMLElement CustomEvent yourInterface */
@kevrat

This comment has been minimized.

Copy link

commented Jul 3, 2018

+1
2018-07-03 16-42-20

@kevrat

This comment has been minimized.

Copy link

commented Jul 3, 2018

Also for no-use-before-define
2018-07-03 16-45-55

@kinyat

This comment has been minimized.

Copy link
Author

commented Jul 23, 2018

JYI: #1101

I have created a PR to turn this off for typescript but it hasn't been reviewed/approved and it is stale

@stale

This comment has been minimized.

Copy link

commented Oct 21, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Oct 21, 2018

@stale stale bot closed this Oct 28, 2018

@mbret

This comment has been minimized.

Copy link

commented Jan 20, 2019

Any news on that ? The issue still exist and makes standardjs unusable with typescript.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 20, 2019

@feross

This comment has been minimized.

Copy link
Member

commented Aug 11, 2019

Let's track this issue here: #1283

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
6 participants
You can’t perform that action at this time.