Skip to content

limit no-node-access errors reported #334

Closed
@Belco90

Description

@Belco90

Originated by #331. I don't think no-node-access should report DOM elements queried from document since we can't detect properly if being used for a test because of Aggressive Reporting.

In the rule doc it says this case is invalid:

// If is not importing a testing-library package

document.getElementById('submit-btn').closest('button');

But we can't actually know this for the reason mentioned before.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreleased

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions