You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the code for the rule, it seems pretty specific to Express < version 5. Other frameworks like Fastify, Koa, etc. may not have the same limitations.
Probably the best resolution for this is to rename the rule to be Express specific. Users would still need to enable/disable it based on which version of Express they are using. However, it would avoid flagging for other frameworks like Express that do support async handlers.
What version of Oxlint are you using?
0.16.0
What command did you run?
pnpm dlx oxlint@latest -D suspicious .
What does your
.oxlintrc.json
config file look like?None
What happened?
Fastify (https://fastify.dev/) async endpoints are considered Express async endpoints.
This is what a Fastify server looks like:
Not a blocking issue as I can disable the
oxc(no-async-endpoint-handlers)
rule.The text was updated successfully, but these errors were encountered: