Open
Description
What rule do you want to change?
no-unnecessary-act
Does this change cause the rule to produce more or fewer warnings?
More warnings
How will the change be implemented?
I don't have a plan to implement the change yet.
The idea is to improve the rule no-unnecessary-act
so it can detect unnecessary act
which are called before a render.
https://github.com/testing-library/eslint-plugin-testing-library/blob/main/docs/rules/no-unnecessary-act.md
Those unnecessary make the codebase noisy.
Example code
act(() => {
someSetupMethod();
});
render(<Example />);
How does the current rule affect the code?
This unnecessary act
is not detected
How will the new rule affect the code?
This unnecessary act
is detected
Anything else?
No response
Do you want to submit a pull request to change the rule?
Yes, but need help