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

fix(eslint-plugin): [no-var-requires] error if parent is CallExpression #725

Merged

Conversation

JayaKrishnaNamburu
Copy link
Contributor

Throwing error if the parent is CallExpression in no-var-requires plugin

Closes: #665

Throwing error if the parent is CallExpression in no-var-requires plugin

Closes: typescript-eslint#665
@bradzacher bradzacher changed the title fix: 🐛 Throwig error if parent is CallExpression fix(eslint-plugin): [no-var-requires] error if parent is CallExpression Jul 19, 2019
@bradzacher
Copy link
Member

Could you please add tests for this?
Not much point fixing the bug if there's nothing to make sure it doesn't happen again!

@bradzacher bradzacher added the bug Something isn't working label Jul 19, 2019
@JayaKrishnaNamburu
Copy link
Contributor Author

Sure, i will add test cases and update the PR

Adding a missing test case after handling new edge case

Closes: typescript-eslint#665
@JayaKrishnaNamburu
Copy link
Contributor Author

Hi @bradzacher I have added the missing test case, sorry for the delay 😅

@bradzacher bradzacher merged commit b2ca20d into typescript-eslint:master Jul 24, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[no-var-requires] False negative if require result is passed to a function
2 participants