-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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(server): eslint await-thenable #7545
Conversation
Deploying with Cloudflare Pages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. maybe we can look at making a parent config that these all extend so they can all have the same core set of rules.
Seems like it shouldn't be too hard. https://turbo.build/repo/docs/handbook/linting/eslint |
There are a few other rules to improve promise handling that I just turned on in the web project and which you might find to be useful here: https://github.com/immich-app/immich/pull/7382/files#diff-c1f89ef5e816f54437b1a48e36db79213d698329e9bbafd4c84a81506d8f197fR52 |
Thanks, Ben! I added those rules and made the corresponding modifications :) |
…e/eslint-await-thenable
Looking for feedback on this before modifying other packages.
I had an unneeded await in my code and found an eslint rule to prevent it. It also found three other parts where it could have been used incorrectly