From 7adc8c3abcfd8f37d43f0b61d620ce8e9856367f Mon Sep 17 00:00:00 2001 From: PoziWorld <5961162+PoziWorld@users.noreply.github.com> Date: Tue, 12 Feb 2019 22:00:25 -0800 Subject: [PATCH] =?UTF-8?q?Fix=20grammar=20in=20=E2=80=9Cthere=E2=80=99s?= =?UTF-8?q?=20nothing=20prevent=20you=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed “For example, there’s nothing prevent you from writing:” to “For example, there’s nothing preventing you from writing:” --- docs/rules/no-shadow-restricted-names.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rules/no-shadow-restricted-names.md b/docs/rules/no-shadow-restricted-names.md index 9dfc0371906..890353da787 100644 --- a/docs/rules/no-shadow-restricted-names.md +++ b/docs/rules/no-shadow-restricted-names.md @@ -1,6 +1,6 @@ # Disallow Shadowing of Restricted Names (no-shadow-restricted-names) -ES5 §15.1.1 Value Properties of the Global Object (`NaN`, `Infinity`, `undefined`) as well as strict mode restricted identifiers `eval` and `arguments` are considered to be restricted names in JavaScript. Defining them to mean something else can have unintended consequences and confuse others reading the code. For example, there's nothing prevent you from writing: +ES5 §15.1.1 Value Properties of the Global Object (`NaN`, `Infinity`, `undefined`) as well as strict mode restricted identifiers `eval` and `arguments` are considered to be restricted names in JavaScript. Defining them to mean something else can have unintended consequences and confuse others reading the code. For example, there's nothing preventing you from writing: ```js var undefined = "foo";