Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Open
Description
Overview
One of the most prominently requested, praised, and criticized (sometimes validly) set of lint rules we provide is the Promise/Thenable-related ones:
- @typescript-eslint/await-thenable
- @typescript-eslint/no-floating-promises
- @typescript-eslint/no-misused-promises
- @typescript-eslint/prefer-promise-reject-errors
- @typescript-eslint/promise-function-async
Having a nice comprehensive blog post explaining all of them together will be a good way to help folks understand them. Following or alongside#8088, I'd like to write that post explaining:
- What those rules generally do
- Why they're so great & lovely
- Why & how ofEnhancement: [no-floating-promises] add an 'allowForKnownSafePromises' option #7008 &Enhancement: [no-floating-promises] add an 'allowForKnownSafeCalls' option #8404
- Why & how offeat(eslint-plugin): [no-floating-promises] add checkThenables option #9263 &feat(eslint-plugin): [no-floating-promises] disable checkThenables by default for v8 #9559
This'll also be useful once#7008 and#8404 are in, as I expect the new options will be talked about on social media.