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
Add eslint-plugin-promise and fix async/Promise issues #525
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have a bunch of improper uses of
async
(e.g., withoutawait
) and also a bunch ofPromise
bugs that will affect performance.A first step on the path to fixing this would be to add some linting for Promises. We can use https://github.com/xjamundx/eslint-plugin-promise, with the recommended rules defined. I tested it locally, and it already finds 24 problems we can fix.
We should also eliminate all pure synchronous calls that have been wrapped with Promises unnecessarily. In essence, if we don't need a Promise, let's get rid of it.
This recent talk is a good intro to some of the problems I'm referring to here.
The text was updated successfully, but these errors were encountered: