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 @typescript-eslint/no-floating-promises #1671

Merged
merged 17 commits into from
Mar 22, 2022
Merged

add @typescript-eslint/no-floating-promises #1671

merged 17 commits into from
Mar 22, 2022

Conversation

john-schmitz
Copy link
Contributor

I am honestly not sure even if we should handle any errors comming from res.header() thats why I voided it

fixes #1577

Copy link
Member

@KATT KATT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not at a computer but have a look to see if any of the ❌ CI steps are obvious

@john-schmitz
Copy link
Contributor Author

Not at a computer but have a look to see if any of the x CI steps are obvious

The fix is non-releated to the PR, but I can help

@vercel
Copy link

vercel bot commented Mar 22, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

next-prisma-starter – ./examples/next-prisma-starter

🔍 Inspect: https://vercel.com/trpc/next-prisma-starter/136eCDwwu9Y47E8rqj8Mp1rFsKLH
✅ Preview: https://next-prisma-starter-git-fix-1577-trpc.vercel.app

www – ./www

🔍 Inspect: https://vercel.com/trpc/www/GUkCa6ezDUt4CzTjiWxrXqDYPsHy
✅ Preview: https://www-git-fix-1577-trpc.vercel.app

Copy link
Contributor

@skarab42 skarab42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good :)

.tool-versions Outdated
@@ -0,0 +1 @@
nodejs 14.19.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do nvm automatically pick this up

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're using asdf, you can have it read from .nvmrc anyway. nvm does not read from .tool-versions at all though. Unfortunately, the ideal solution would be to have both.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use .nvmrc if that works for both 🤷

@@ -7,6 +7,7 @@
"plugin:prettier/recommended"
],
"parserOptions": {
"project": "tsconfig.json",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't look related to this PR? We only need to change config at the root level of the project

Suggested change
"project": "tsconfig.json",

packages/server/src/adapters/ws.ts Outdated Show resolved Hide resolved
@@ -147,7 +147,7 @@ export function subscriptionPullFactory<TOutput>(opts: {
}

return new Subscription<TOutput>((emit) => {
_pull(emit);
_pull(emit).catch((err) => emit.error(getErrorFromUnknown(err)));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌 👌

@KATT
Copy link
Member

KATT commented Mar 22, 2022

@all-contributors add @john-schmitz for code

@allcontributors
Copy link
Contributor

@KATT

I've put up a pull request to add @john-schmitz! 🎉

Copy link
Member

@KATT KATT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI changes looks very much like they have to do with this PR. I tried re-running and it's fine on main

john-schmitz and others added 2 commits March 22, 2022 18:47
Co-authored-by: Alex Johansson <alexander@n1s.se>
Copy link
Member

@KATT KATT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some last tweaks then 🚀

@john-schmitz
Copy link
Contributor Author

Sorry for the messed up configuration, did not realize that would break the examples.

But alas! It's fixed

@KATT
Copy link
Member

KATT commented Mar 22, 2022

@john-schmitz you have no GitHub sponsors setup, if you want to, set one up and I'll send you a thank you!

@KATT KATT merged commit cef6f2b into main Mar 22, 2022
@KATT KATT deleted the fix/1577 branch March 22, 2022 23:33
@john-schmitz
Copy link
Contributor Author

@john-schmitz you have no GitHub sponsors setup, if you want to, set one up and I'll send you a thank you!

I just requested for it! And thank you very much for your project, I contribuited first and foremost because I admire it.

@jlalmes
Copy link
Contributor

jlalmes commented Mar 23, 2022

Thanks for this - was meaning to get around to it at some point! 🚀

@github-actions
Copy link

github-actions bot commented Oct 6, 2022

This pull request has been locked because it had no new activity for 30 days. If you think, this PR is still necessary, create a new one with the same branch. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add @typescript-eslint/no-floating-promises lint rule
5 participants