From c2f2db97c6d6a415b78ee7b3e8924853d465e757 Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Sat, 6 Jul 2019 12:43:56 +0200 Subject: [PATCH] Docs: Replace global true and false with writable and readonly in rules (#11956) --- docs/rules/no-global-assign.md | 4 ++-- docs/rules/no-native-reassign.md | 4 ++-- docs/rules/no-undef.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/rules/no-global-assign.md b/docs/rules/no-global-assign.md index c4c1914daa3..b3718d178b2 100644 --- a/docs/rules/no-global-assign.md +++ b/docs/rules/no-global-assign.md @@ -37,7 +37,7 @@ top = 1 ```js /*eslint no-global-assign: "error"*/ -/*globals a:false*/ +/*global a:readonly*/ a = 1 ``` @@ -61,7 +61,7 @@ onload = function() {} ```js /*eslint no-global-assign: "error"*/ -/*globals a:true*/ +/*global a:writable*/ a = 1 ``` diff --git a/docs/rules/no-native-reassign.md b/docs/rules/no-native-reassign.md index fb1fe9f3f68..bfb511de15e 100644 --- a/docs/rules/no-native-reassign.md +++ b/docs/rules/no-native-reassign.md @@ -39,7 +39,7 @@ top = 1 ```js /*eslint no-native-reassign: "error"*/ -/*globals a:false*/ +/*global a:readonly*/ a = 1 ``` @@ -63,7 +63,7 @@ onload = function() {} ```js /*eslint no-native-reassign: "error"*/ -/*globals a:true*/ +/*global a:writable*/ a = 1 ``` diff --git a/docs/rules/no-undef.md b/docs/rules/no-undef.md index 49a149fde77..f5dc5a280c5 100644 --- a/docs/rules/no-undef.md +++ b/docs/rules/no-undef.md @@ -18,14 +18,14 @@ b = 10; Examples of **correct** code for this rule with `global` declaration: ```js -/*global someFunction b:true*/ +/*global someFunction b:writable*/ /*eslint no-undef: "error"*/ var a = someFunction(); b = 10; ``` -The `b:true` syntax in `/*global */` indicates that assignment to `b` is correct. +The `b:writable` syntax in `/*global */` indicates that assignment to `b` is correct. Examples of **incorrect** code for this rule with `global` declaration: