Comment by williamdclt
4 years ago
> I run into subtle bugs all the time due to missing awaits, it's incredibly frustrating.
If you use TS, ESLint's `no-floating-promises` rule (or the equivalent in other linters) is _such_ a requirement
4 years ago
> I run into subtle bugs all the time due to missing awaits, it's incredibly frustrating.
If you use TS, ESLint's `no-floating-promises` rule (or the equivalent in other linters) is _such_ a requirement
That assumes all promise-generating code can be and is properly annotated, though.
Typescript will cover this!
Typescript lets you call into un-annotated libraries or annotate things as `any` or whatever.
1 reply →