-
Notifications
You must be signed in to change notification settings - Fork 40
Latest version not reporting/suggesting changes on disabled/value attributes #203
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
It looks like at least for
@benmonro @MichaelDeBoey do either of you know if there's a reason for that? My understanding is that all the queries return elements, so we should be ok to apply this rule to any of the query methods. (I'm guessing this is probably also the case for |
@G-Rath It seems like this was first introduced by @juzerzarif in #122 |
I believe it was because |
@juzerzarif that makes sense - in that case if we want to keep it like that we should probably stick a note in the doc; could also be worth considering if we want to provide a (I imagine that's the case with a number of rules - could be interesting to see if optionally using type-checking if available could let the rules be smarter) |
Yeah adding a note to the docs makes sense to me |
🎉 This issue has been resolved in version 5.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
eslint-plugin-jest-dom
version: 3.9.2node
version: 14.17.6npm
version: 6.14.15Relevant code or config
What you did:
run eslint using
npm run eslint
What happened:
eslint is not reporting suggested changes when using
.disabled
or.value
Reproduction repository:
https://github.com/ricardozv28/eslint-plugin-jest-dom-bug
Problem description:
When using the latest versions of the package, eslint won't report on
.disabled
or.value
(I haven't tested the other rules but those are the ones that I caught when adding the plugin to an existing repo at work)Here is a screenshot of the output of the reproducible projet, it is just showing the ones from eslint-plugin-testing-librarry

downgrading to version 3.6.3 make the errors appear

version 3.6.4 only reports the

toHaveValue
Suggested solution:
The text was updated successfully, but these errors were encountered: