mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-19 04:31:32 +00:00
Merge pull request #20131 from overleaf/jpa-mongoose-query-is-promise
[web] eslint: consider promise-like interfaces in no-floating-promises GitOrigin-RevId: c179f4a27c1c576d18abdec0e27433b846d7f620
This commit is contained in:
parent
0348d8a8c1
commit
e643a8ea32
1 changed files with 4 additions and 1 deletions
|
@ -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 },
|
||||
],
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue