💭 [lint] suggested usage of async function
#1128
Replies: 3 comments
-
The problem with this suggestion is that, in the absense of type info, it forces otherwise synchronous function calls to take an unnecessary tick (by adding |
Beta Was this translation helpful? Give feedback.
-
I am generally against lint rules that can't be reliably inferred with static information, even It would be nice to keep a track of lint rules that are only practical, or reliable, with the usage of type information so we can more appropriately justify investment in the future. Don't want that to be a blocker here for implementation but it's something we should keep in mind when deciding if a rule isn't reliable enough to be useful and a net positive. |
Beta Was this translation helpful? Give feedback.
-
Should this ticket be repurposed to be a list of rules that may be useful once proper type information is available @ematipico? |
Beta Was this translation helpful? Give feedback.
-
This is an issue to track a suggestion from @samccone (#1118 (comment)); suggestion given while there was a discussion around enforcing
await
insideasync
functions.Here's the suggestion of the rule
I like this suggestion and I think we should implement it.
cc @bitpshr
Beta Was this translation helpful? Give feedback.
All reactions