False positive for no-node-access
when accessing variable declaration's property children
, activeElement
, firstChild
etc
#683
Labels
bug
Something isn't working
Have you read the Troubleshooting section?
Yes
Plugin version
v5.9.1
ESLint version
v8.23.0
Node.js version
16.10.0
package manager and version
npm 7.24.0
Operating system
macOS Big Sur, version 11.6
Bug description
Extracted to an issue of its own from discussion in #386.
Steps to reproduce
children
propertyexpect
statement)For example, here is a test code snippet that produces the error:
Error output/screenshots
18:42 error Avoid direct Node access. Prefer using the methods from Testing Library testing-library/no-node-access
ESLint configuration
Recommend rules
Rule(s) affected
no-node-access
Anything else?
children
and all other property names listed inPROPERTIES_RETURNING_NODES
inlib/util/index.ts
should not produce this error, if they happen to be properties of some variable declaration.Do you want to submit a pull request to fix this bug?
No
The text was updated successfully, but these errors were encountered: