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

Add eslint-plugin-promise and fix async/Promise issues #525

Closed
humphd opened this issue Dec 19, 2019 · 1 comment
Closed

Add eslint-plugin-promise and fix async/Promise issues #525

humphd opened this issue Dec 19, 2019 · 1 comment
Assignees
Labels
type: bug Something isn't working
Projects

Comments

@humphd
Copy link
Contributor

humphd commented Dec 19, 2019

We have a bunch of improper uses of async (e.g., without await) and also a bunch of Promise 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.

@humphd humphd added the type: bug Something isn't working label Dec 19, 2019
@manekenpix manekenpix added this to Issue in Main via automation Dec 20, 2019
c3ho added a commit to c3ho/telescope that referenced this issue Dec 21, 2019
c3ho added a commit to c3ho/telescope that referenced this issue Dec 21, 2019
@c3ho c3ho self-assigned this Dec 21, 2019
c3ho added a commit to c3ho/telescope that referenced this issue Jan 11, 2020
c3ho added a commit to c3ho/telescope that referenced this issue Jan 20, 2020
c3ho added a commit to c3ho/telescope that referenced this issue Jan 21, 2020
c3ho added a commit to c3ho/telescope that referenced this issue Jan 21, 2020
@c3ho c3ho closed this as completed in f185fcf Jan 21, 2020
Main automation moved this from Issue to Closed Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
No open projects
Main
Closed
Development

No branches or pull requests

2 participants