1
1
mirror of https://github.com/theoludwig/eslint-config-conventions.git synced 2025-01-07 08:55:41 +01:00

fix: relax @typescript-eslint/no-floating-promises for node:test

Ref: https://github.com/nodejs/node/issues/51292
This commit is contained in:
Théo LUDWIG 2025-01-06 23:09:18 +01:00
parent 5e63c17030
commit d9733dc1c8
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B

View File

@ -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-for-in-array": "error",
"@typescript-eslint/no-invalid-void-type": "error", "@typescript-eslint/no-invalid-void-type": "error",
"@typescript-eslint/no-misused-new": "error", "@typescript-eslint/no-misused-new": "error",