[web] eslint: consider promise-like interfaces in no-floating-promises GitOrigin-RevId: c179f4a27c1c576d18abdec0e27433b846d7f620
@@ -143,7 +143,10 @@ module.exports = {
'Mongo find returns a cursor not a promise, use `for await (const result of cursor)` or `.toArray()` instead.',
},
],
- '@typescript-eslint/no-floating-promises': 'error',
+ '@typescript-eslint/no-floating-promises': [
+ 'error',
+ { checkThenables: true },
+ ],
{