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:
parent
5e63c17030
commit
d9733dc1c8
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user