Skip to content

Commit

Permalink
fix: ignore node test for floating promises
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau committed Nov 28, 2024
1 parent d6d6c2b commit 7ad5e39
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions @pob/eslint-config-typescript/lib/overrides/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
],
},
],
},
};

0 comments on commit 7ad5e39

Please sign in to comment.