You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typescript-eslint has a rule called no-floating-promises which requires all promises to be handled (either via return or await) or explicitly ignored (via void).
It would be nice to be able to get a lint warning when leaving an Effect hanging.
What is the feature you are proposing to solve the problem?
A new rule to detect floating Effects could warn on the following circumstances:
What is the problem this feature would solve?
Background
typescript-eslint
has a rule calledno-floating-promises
which requires all promises to be handled (either viareturn
orawait
) or explicitly ignored (viavoid
).It would be nice to be able to get a lint warning when leaving an Effect hanging.
What is the feature you are proposing to solve the problem?
A new rule to detect floating Effects could warn on the following circumstances:
❌ Incorrect
✅ Correct
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: