-
-
Notifications
You must be signed in to change notification settings - Fork 30
Fix: Rule can't find reference of create
function
#107
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
Conversation
create
function
@aladdin-add No CI running? |
`, { ecmaVersion: 6 }); | ||
const expected = { | ||
create: { type: 'Identifier' }, | ||
meta: { type: 'Identifier' }, |
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.
This should still break rules like this, It should return the reference. But I'm not going to work on it in this PR.
ci was not working somehow ╮( ̄▽ ̄)╭, we are considering switching to gh actions. refs #104 |
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, thanks!
Turns out if
create
is a reference, the global scope don't have the reference not only innodejsScope
, also broken ifsourceType
is set to'module'
.To find the correct reference, I'm searching all
childScopes
, I hope it's fine to do this.Fixes #106