diff --git a/@pob/eslint-config-typescript/lib/overrides/test.js b/@pob/eslint-config-typescript/lib/overrides/test.js index 8d5b28517..a692472b8 100644 --- a/@pob/eslint-config-typescript/lib/overrides/test.js +++ b/@pob/eslint-config-typescript/lib/overrides/test.js @@ -13,5 +13,19 @@ export default { // don't force return type in test "@typescript-eslint/explicit-function-return-type": "off", + + // https://github.com/nodejs/node/issues/51292 + "@typescript-eslint/no-floating-promises": [ + "error", + { + allowForKnownSafeCalls: [ + { + from: "package", + name: ["it", "describe"], + package: "node:test", + }, + ], + }, + ], }, };