Skip to content

Commit

Permalink
fix: relax @typescript-eslint/no-floating-promises for node:test
Browse files Browse the repository at this point in the history
  • Loading branch information
theoludwig committed Jan 6, 2025
1 parent 5e63c17 commit d9733dc
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,19 @@ export default typescriptESLint.config(
},
],

"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-floating-promises": [
"error",
{
allowForKnownSafeCalls: [
{
from: "package",
name: ["it", "describe"],
package: "node:test",
},
],
},
],

"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-invalid-void-type": "error",
"@typescript-eslint/no-misused-new": "error",
Expand Down

0 comments on commit d9733dc

Please sign in to comment.