We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
no-networkidle
waitForLoadState
1 parent e94b2e4 commit 63d53b8Copy full SHA for 63d53b8
src/rules/no-networkidle.ts
@@ -26,7 +26,7 @@ export default {
26
if (methodName === 'waitForLoadState') {
27
const arg = node.arguments[0];
28
29
- if (isStringLiteral(arg, 'networkidle')) {
+ if (arg && isStringLiteral(arg, 'networkidle')) {
30
context.report({ messageId, node: arg });
31
}
32
0 commit comments