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

chore: add lint rule to prevent floating promises #404

Merged
merged 3 commits into from
Oct 5, 2020

Conversation

karrui
Copy link
Contributor

@karrui karrui commented Oct 2, 2020

Problem

A couple of scares that happened with promises failing to be invoked or awaited, etc (floating promises), most recently with #362 (correct me if I'm wrong).

This PR adds an ESLint rule that returns an error if any promises are floating. Also fixes the errors that this lint rule highlighted.

@karrui karrui requested a review from liangyuanruo October 2, 2020 03:17
src/app/models/form.server.model.ts Outdated Show resolved Hide resolved
@karrui karrui merged commit 373761d into develop Oct 5, 2020
@karrui karrui deleted the lint/no-floating-promise branch October 5, 2020 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants