suspicious/noPlaywrightWaitForTimeout
suspicious · since 2.4.2
No autofix
biome.json
{
"linter": {
"rules": {
"suspicious": {
"noPlaywrightWaitForTimeout": "error"
}
}
}
}await page.waitForTimeout(5000);await page.waitForTimeout(1000);await page.waitForLoadState();await page.waitForURL('/home');await page.waitForFunction(() => window.innerWidth < 100);Examples from the Biome documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
ESLint does not have this rule.
Oxlint does not have this rule.
suspicious/noPlaywrightWaitForTimeout
suspicious · since 2.4.2
{
"linter": {
"rules": {
"suspicious": {
"noPlaywrightWaitForTimeout": "error"
}
}
}
}Disallow pseudo-elements inside :is(), :where(), :not() and :has().
Disallow unnecessary await for Playwright methods that don't return promises.
Replaces usages of forwardRef with passing ref as a prop.