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
The lint/suspicious/useAwait suppression comment should be applied and Biome should not report an error, even if the async function without awaits in it has a biome-ignore comment inside of it.
For the playground: removing the biome-ignore comment on line 3 'fixes' the situation, but obviously reports an error in that position. I've discovered that it does not really matter where the biome-ignore comment is, and if it's even applicable in that situation. As long as there is any biome-ignore comment, the useAwait rule breaks.
Code of Conduct
I agree to follow Biome's Code of Conduct
The text was updated successfully, but these errors were encountered:
Environment information
Rule name
lint/suspicious/useAwait
Playground link
https://biomejs.dev/playground/?lintRules=all&code=LwAvACAAYgBpAG8AbQBlAC0AaQBnAG4AbwByAGUAIABsAGkAbgB0AC8AcwB1AHMAcABpAGMAaQBvAHUAcwAvAHUAcwBlAEEAdwBhAGkAdAA6ACAASABhAHMAIAB0AG8AIABiAGUAIAB0AGgAaQBzACAAdwBhAHkACgBjAG8AbgBzAHQAIABwACAAPQAgAGEAcwB5AG4AYwAgACgAKQA6ACAAYgBvAG8AbABlAGEAbgAgAD0APgAgAHsACgAgACAALwAvACAAYgBpAG8AbQBlAC0AaQBnAG4AbwByAGUAIABsAGkAbgB0AC8AcwB1AHMAcABpAGMAaQBvAHUAcwAvAHUAcwBlAEUAcgByAG8AcgBNAGUAcwBzAGEAZwBlADoAIABXAGUAIABvAG4AbAB5ACAAbgBlAGUAZAAgAHQAaABlACAAcwB0AGEAYwBrACAAaABlAHIAZQAsACAAbgBvACAAbgBlAGUAZAAgAGYAbwByACAAYQAgAG0AZQBzAHMAYQBnAGUACgAgACAAcgBlAHQAdQByAG4AIABuAGUAdwAgAEUAcgByAG8AcgAoACkALgBzAHQAYQBjAGsAOwAKAH0ACgA%3D
Expected result
The lint/suspicious/useAwait suppression comment should be applied and Biome should not report an error, even if the async function without awaits in it has a biome-ignore comment inside of it.
For the playground: removing the biome-ignore comment on line 3 'fixes' the situation, but obviously reports an error in that position. I've discovered that it does not really matter where the biome-ignore comment is, and if it's even applicable in that situation. As long as there is any biome-ignore comment, the useAwait rule breaks.
Code of Conduct
The text was updated successfully, but these errors were encountered: