-
Notifications
You must be signed in to change notification settings - Fork 149
no-manual-cleanup does not like require(modulaName) #125
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
Labels
Comments
Hey Kent! Thanks for open an issue so detailed. This one should be easy to fix, I'll try to take a look at it this weekend if no one else can address it before. |
🎉 This issue has been resolved in version 3.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@all-contributors please add @kentcdodds for bugs |
I've put up a pull request to add @kentcdodds! 🎉 |
Sweet! Thanks 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've got code like this:
and no-manual-cleanup does this:
This is because of this code:
eslint-plugin-testing-library/lib/rules/no-manual-cleanup.ts
Lines 65 to 66 in 3439a29
It should check whether
value
exists before callingmatch
:)The text was updated successfully, but these errors were encountered: