Skip to content

Commit d9733dc

Browse files
committed
fix: relax @typescript-eslint/no-floating-promises for node:test
Ref: nodejs/node#51292
1 parent 5e63c17 commit d9733dc

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

eslint.config.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,19 @@ export default typescriptESLint.config(
388388
},
389389
],
390390

391-
"@typescript-eslint/no-floating-promises": "error",
391+
"@typescript-eslint/no-floating-promises": [
392+
"error",
393+
{
394+
allowForKnownSafeCalls: [
395+
{
396+
from: "package",
397+
name: ["it", "describe"],
398+
package: "node:test",
399+
},
400+
],
401+
},
402+
],
403+
392404
"@typescript-eslint/no-for-in-array": "error",
393405
"@typescript-eslint/no-invalid-void-type": "error",
394406
"@typescript-eslint/no-misused-new": "error",

0 commit comments

Comments
 (0)