From a7afaf92740f3ad47a419620b230bb99c0d53fee Mon Sep 17 00:00:00 2001 From: Percy Ma Date: Sun, 19 Feb 2023 16:05:48 +0800 Subject: [PATCH] docs: Add function call example for no-undefined https://github.com/eslint/eslint/pull/16712 --- src/rules/no-undefined.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rules/no-undefined.md b/src/rules/no-undefined.md index d5741ca..793265f 100644 --- a/src/rules/no-undefined.md +++ b/src/rules/no-undefined.md @@ -56,6 +56,8 @@ if (foo === undefined) { function foo(undefined) { // ... } + +bar(undefined, "lorem"); ``` ::: @@ -76,6 +78,8 @@ if (typeof foo === "undefined") { } global.undefined = "foo"; + +bar(void 0, "lorem"); ``` :::