Skip to content
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

no-wait-for-side-effects: not reporting VariableDeclaration nodes #368

Closed
Belco90 opened this issue May 3, 2021 · 8 comments · Fixed by #677
Closed

no-wait-for-side-effects: not reporting VariableDeclaration nodes #368

Belco90 opened this issue May 3, 2021 · 8 comments · Fixed by #677
Assignees
Labels
bug Something isn't working pinned Pinned for different reasons. Issues with this label won't be flagged as stale by stalebot released on @alpha released

Comments

@Belco90
Copy link
Member

Belco90 commented May 3, 2021

Also, I've noticed this rule is NOT reporting this case. Is that intentional? 🤔


    await waitFor(() => {

      userEvent.click(button) // reported

      const a = userEvent.click(button) // NOT reported

    })

Good catch. It's not intentional, but I detected it when implementing no-unnecessary-act, so it will be addressed there. I'll make sure to include this case in the tests.

Originally posted by @Belco90 in #363 (comment)

This will be finally addressed separately, after #259 gets released.

@Belco90 Belco90 self-assigned this May 3, 2021
@Belco90 Belco90 added the bug Something isn't working label May 3, 2021
@Belco90
Copy link
Member Author

Belco90 commented May 3, 2021

@zaicevas pinging you here!

@stale
Copy link

stale bot commented Jul 2, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Jul 2, 2021
@Belco90 Belco90 added pinned Pinned for different reasons. Issues with this label won't be flagged as stale by stalebot and removed wontfix This will not be worked on labels Jul 2, 2021
@sjarva
Copy link
Collaborator

sjarva commented Oct 17, 2022

I'm asking this again @Belco90: I see you have assigned this to yourself, but since you haven't made a PR yet, would you mind if I submit one? 🤗

@Belco90 Belco90 assigned sjarva and unassigned Belco90 Oct 17, 2022
@Belco90
Copy link
Member Author

Belco90 commented Oct 17, 2022

@sjarva By all means! I didn't realize it was assigned to me 😓

@sjarva
Copy link
Collaborator

sjarva commented Oct 17, 2022

Thanks! Could you go through all issues that you have self-assigned and unassign yourself if aren't going to make a PR in the near future. (I found at least a couple of bugs, but not sure about feature issues.)

@Belco90
Copy link
Member Author

Belco90 commented Oct 17, 2022

Good idea! I just reviewed the issues assigned to myself and unassigned them.

Belco90 pushed a commit that referenced this issue Oct 17, 2022
…ons (#677)

fix: false negatives in variables declarations

Closes #368
@github-actions
Copy link

🎉 This issue has been resolved in version 5.7.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This issue has been resolved in version 6.0.0-alpha.14 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pinned Pinned for different reasons. Issues with this label won't be flagged as stale by stalebot released on @alpha released
Projects
None yet
2 participants