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
fix: async checks when calling queries member expressions (#114)
Closes#113
* refactor(await-async-query): remove redundant checks
While running Program:exit(), nodes were tested again unnecessarily for isAwaited and isPromiseResolved
* fix(await-async-query): check queries being called as member expressions
First, abstract a isQueryUsage function to check if a node should be checked for this rule. Then, add new selector
for queries being called as part of MemberExpression and check their parent against the rule. Finally, use the
queryName prop to make sure the right error message is printed
* docs(await-async-query): add valid and invalid examples using screen
* fix(no-await-sync-query): prevent screen sync queries from using await
First, abstract reportError function. Then, create selector for MemberExpression queries.
* docs(no-await-sync-query): add valid and invalid examples using screen
0 commit comments