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

lint floating promises #5407

Closed
turadg opened this issue May 20, 2022 · 1 comment · Fixed by #5495
Closed

lint floating promises #5407

turadg opened this issue May 20, 2022 · 1 comment · Fixed by #5495
Labels
code-style defensive correctness patterns; readability thru consistency devex developer experience tooling repo-wide infrastructure

Comments

@turadg
Copy link
Member

turadg commented May 20, 2022

What is the Problem Being Solved?

We use promises extensively. The language allows floating promises (fire and forget) but that's rarely what we want. We've seen bugs with missing error handling, surprising order of execution or loss of stack trace.

Description of the Design

Adopt the typescript-eslint rule no-floating-promises

Security Considerations

--

Test Plan

Check with developers to get the right signal to noise ratio in the config

@turadg turadg added enhancement New feature or request tooling repo-wide infrastructure and removed enhancement New feature or request labels May 20, 2022
@dckc dckc added code-style defensive correctness patterns; readability thru consistency devex developer experience labels May 20, 2022
@dckc
Copy link
Member

dckc commented May 20, 2022

yes, please!

I think there's wide support for this in the dev team, presuming the tooling is good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-style defensive correctness patterns; readability thru consistency devex developer experience tooling repo-wide infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants