Skip to content

(Updated again) Flowlint no floating promises #8482

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

Closed

Conversation

SebastienGllmt
Copy link
Contributor

@SebastienGllmt SebastienGllmt commented Sep 8, 2020

This is yet another rebase of #8260
There were a lot of nasty merge conflicts, so I just created a new PR instead since I don't think I updated everything correctly.

In practice, this PR seems to work well on our codebase (>100K of Javascript code)

TODO:

  • solve type_at_pos_type_destructors.diff
  • solve async.diff
  • option to disable the lint for top-level async (?)
  • add documentation

@jeresig
Copy link

jeresig commented Sep 22, 2020

This is very exciting - we were talking about wanting this exact linter to use at Khan Academy. It would definitely help us to catch a lot of tricky bugs that would otherwise be nearly impossible to find. We likely won't be able to offer technical support but here is a huge 👍 to seeing this PR and hopefully it getting it merged in someday soon!

@inactivist
Copy link

What can we do to help move this forward? I think it would be a helpful addition to Flow.

@gkz
Copy link
Member

gkz commented Dec 21, 2022

Check out the Flow lint unused-promise-in-async-scope

https://beta.flow.org/en/docs/linting/rule-reference/#toc-unused-promise-in-async-scope

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in d5078fb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants