Skip to content

Commit 18d4f47

Browse files
committed
Configure no-floating-promises
1 parent 2fd3935 commit 18d4f47

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

eslint.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@ export default tseslint.config(
2323
]),
2424
eslint.configs.recommended,
2525
tseslint.configs.recommendedTypeChecked,
26+
{
27+
rules: {
28+
"@typescript-eslint/no-floating-promises": [
29+
"error",
30+
{
31+
allowForKnownSafeCalls: [
32+
{ from: "package", name: ["suite", "test"], package: "node:test" },
33+
],
34+
},
35+
],
36+
},
37+
},
2638
{
2739
languageOptions: {
2840
parserOptions: {

0 commit comments

Comments
 (0)