-
Notifications
You must be signed in to change notification settings - Fork 148
Lint RenderResult when returned from function #141
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
Comments
Hey Eric! Thanks for opening an issue. It seems some rules are not checking properly those methods if not coming directly from testing library. |
Which rule is this? 👀 |
Well, the comment in the original description code indicating something not being linted is a |
Oh my bad, I miss-read the snippet. |
I'm not sure that's a bug. @HaveSpacesuit, have you tried setting up the You can do it this way: rules: {
"testing-library/no-debug": ["error", { "renderFunctions": ["renderLoader"] }],
} If the |
I think this one should be fixed when #198 is released. |
The |
Everything related to custom error render methods will change and should be fixed when #198 is released with v4. |
This should be fixed on v4.0.0 The release is available on: |
When returning a
RenderResult
from a function, some destructured methods are caught by the linter, but others aren't.The text was updated successfully, but these errors were encountered: