-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Rule proposal: no-typeof-undefined
#1492
Comments
How about |
When it's undefined variable,
|
in node REPL, yes, but in real projects there is always enabled |
I don't think if (AbortController !== undefined) {} But when you run this code in old browsers don't support if (typeof AbortController !== 'undefined') {} This won't. Of cause, |
Ok, but we can check if the variable is declared in scope with |
This is now accepted. |
@fisker You are potentially silently hiding bugs by always using |
I'm going to work on this. And I'm going to add an option to ignore global variables. |
I've sent #1966, we'll check all When set Or do you still prefer use |
@fisker I think that |
I don't really mind, I'll use |
I'm fine with having it |
Changed |
Less code written
Fail
Pass
The text was updated successfully, but these errors were encountered: