suspicious/noPlaywrightNetworkidle
suspicious · since 2.4.2
No autofix
biome.json
{
"linter": {
"rules": {
"suspicious": {
"noPlaywrightNetworkidle": "error"
}
}
}
}await page.waitForLoadState('networkidle');await page.goto('https://example.com', { waitUntil: 'networkidle' });await page.waitForLoadState('load');await page.goto('https://example.com');
await page.locator('.content').waitFor();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/noPlaywrightNetworkidle
suspicious · since 2.4.2
{
"linter": {
"rules": {
"suspicious": {
"noPlaywrightNetworkidle": "error"
}
}
}
}Disallow selecting Playwright elements by position with first(), last(), and nth().
Disallow usage of element handles (page.$() and page.$$()).
Disallow unnecessary await for Playwright methods that don't return promises.