💅 useAsync
does not warn on functions with decorator with callback argument
#4993
Labels
A-Linter
Area: linter
good first issue
Good for newcomers
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
Rule name
useAsync
Playground link
https://biomejs.dev/playground/?lintRules=all&code=YwBsAGEAcwBzACAAUwBhAG0AcABsAGUAIAB7AAoAIAAgAC8ALwAgAAUnIAB1AHMAZQBBAHcAYQBpAHQAIAB3AGEAcgBuAHMAIABhAHMAIABlAHgAcABlAGMAdABlAGQACgAgACAAYQBzAHkAbgBjACAAdQBzAGUAQQB3AGEAaQB0AFcAbwByAGsAcwAoACkAOgAgAFAAcgBvAG0AaQBzAGUAPABiAG8AbwBsAGUAYQBuAD4AIAB7AAoAIAAgACAAIAByAGUAdAB1AHIAbgAgAHQAcgB1AGUAOwAKACAAIAB9AAoACgAKACAAIAAvAC8AIAAFJyAAVwBpAHQAaAAgAGUAbQBwAHQAeQAgAGQAZQBjAG8AcgBhAHQAbwByACwAIAB1AHMAZQBBAHcAYQBpAHQAIABzAHQAaQBsAGwAIAB3AGEAcgBuAHMAIABjAG8AcgByAGUAYwB0AGwAeQAKACAAIABAAFMAYQBtAHAAbABlACgAKQAKACAAIABhAHMAeQBuAGMAIABkAGUAYwBvAHIAYQB0AGUAZABCAHUAdABPAGsAKAApADoAIABQAHIAbwBtAGkAcwBlADwAYgBvAG8AbABlAGEAbgA%2BACAAewAKACAAIAAgACAAcgBlAHQAdQByAG4AIAB0AHIAdQBlADsACgAgACAAfQAKAAoACgAgACAALwAvACAAPdiU3CAAVwBoAGUAbgAgAHQAaABlACAAZABlAGMAbwByAGEAdABvAHIAIABoAGEAcwAgAGEAcgBnAHUAbQBlAG4AdAAgAHcAaQB0AGgAIABmAHUAbgBjAHQAaQBvAG4ALAAgAHUAcwBlAEEAdwBhAGkAdAAgAHMAdABvAHAAcwAgAHIAZQBwAG8AcgB0AGkAbgBnACAAYQBuACAAaQBzAHMAdQBlAAoAIAAgAEAAUwBhAG0AcABsAGUAKAAoACkAIAA9AD4AIABCAG8AbwBsAGUAYQBuACkACgAgACAAYQBzAHkAbgBjACAAZABlAGMAbwByAGEAdABlAGQAQgByAGUAYQBrAHMAKAApADoAIABQAHIAbwBtAGkAcwBlADwAYgBvAG8AbABlAGEAbgA%2BACAAewAKACAAIAAgACAAcgBlAHQAdQByAG4AIAB0AHIAdQBlADsACgAgACAAfQAKAH0ACgAKAG4AZQB3ACAAUwBhAG0AcABsAGUAKAApADsA
Expected result
Should warn that
async
function does not containawait
Code of Conduct
The text was updated successfully, but these errors were encountered: