Skip to content

Commit fe300ff

Browse files
Correct eslint.config.js
1 parent 8d7517b commit fe300ff

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

packages/fastify-floating-promises/eslint.config.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ export default tseslint.config(
1717
rules: {
1818
"@typescript-eslint/no-floating-promises": [
1919
"error", {
20-
"allowForKnownSafePromises": [
21-
{ "from": "package", "name": "FastifyInstance", "package": "fastify" },
22-
{ "from": "package", "name": "FastifyRegister", "package": "fastify" },
23-
{ "from": "package", "name": "FastifyReply", "package": "fastify" },
24-
],
25-
"checkThenables": true
20+
// 1. Switch this to true to start reporting on Fastify Promise types
21+
"checkThenables": false,
22+
23+
// 2. Un-comment this to allow known safe Fastify Promise types
24+
// "allowForKnownSafePromises": [
25+
// { "from": "package", "name": "FastifyInstance", "package": "fastify" },
26+
// { "from": "package", "name": "FastifyRegister", "package": "fastify" },
27+
// { "from": "package", "name": "FastifyReply", "package": "fastify" },
28+
// ],
2629
}
2730
]
2831
}

0 commit comments

Comments
 (0)