-
Notifications
You must be signed in to change notification settings - Fork 173
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
Add no-undef #304
Add no-undef #304
Conversation
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.
Looking good, I'll check that it works as expected on deno
codebase before landing.
Some false positives:
Other builtins that should be listed:
Edit: Actually there's way more globals to list (https://www.npmjs.com/package/globals) - @kdy1 I'll update that list later, when you're done with the logic. |
False positives were caused by the bug in |
@kdy1 some false positives I found Class constructor param:
Case using enum variant:
Class name inside class method:
Catch binding:
|
@kdy1 the only missing globals I found are |
Got it, thanks! |
Published a new version of Patch of I copied some failing test cases from deno std_lint and verified locally that new version of resolver make the lint work properly. |
@kdy1 thanks, I will start upgrades soon |
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.
LGTM 🚀
I confused
no-global-assign
withno-undef
.I thought
no-global
was about prohibiting assignment to global variables.So I implemented it, but the name of such pass was
no-undef
.