Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: disable require await #252

Merged
merged 2 commits into from
Jul 14, 2023
Merged

Conversation

simenandre
Copy link
Member

By default, the recommended-type-checked config includes the require-await rule. This rule disallows async functions which have no await expression.

This rule is disabled because it is incompatible with Fastify plugins, which are async functions that do not await anything.

Sometimes it's necessary to make asynchronous function calls without awaiting them. For example, when making a function that will later need to use await.

Verified

This commit was signed with the committer’s verified signature.
etrepum Bob Ippolito

Verified

This commit was signed with the committer’s verified signature.
etrepum Bob Ippolito
@simenandre simenandre requested a review from a team as a code owner July 14, 2023 15:22
@simenandre simenandre merged commit 2e3873e into main Jul 14, 2023
@simenandre simenandre deleted the simenandre/disable-require-await branch July 14, 2023 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant