Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upFalse positive `no-undef` in TypeScript with interface #1099
Comments
This comment has been minimized.
This comment has been minimized.
ColtonProvias
commented
Mar 26, 2018
|
It should be noted that abstract classes and class members inherited from abstract classes also throw this error. |
This comment has been minimized.
This comment has been minimized.
|
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 */ |
This comment has been minimized.
This comment has been minimized.
kevrat
commented
Jul 3, 2018
This comment has been minimized.
This comment has been minimized.
kevrat
commented
Jul 3, 2018
This comment has been minimized.
This comment has been minimized.
|
JYI: #1101 I have created a PR to turn this off for typescript but it hasn't been reviewed/approved and it is stale |
This comment has been minimized.
This comment has been minimized.
stale
bot
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
bot
added
the
stale
label
Oct 21, 2018
stale
bot
closed this
Oct 28, 2018
This comment has been minimized.
This comment has been minimized.
mbret
commented
Jan 20, 2019
|
Any news on that ? The issue still exist and makes standardjs unusable with typescript. |
lock
bot
locked as resolved and limited conversation to collaborators
Apr 20, 2019
This comment has been minimized.
This comment has been minimized.
|
Let's track this issue here: #1283 |


kinyat commentedMar 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.