Skip to content
Permalink
Browse files

Docs: Replace global true and false with writable and readonly in rul…

…es (#11956)
  • Loading branch information...
mdjermanovic authored and aladdin-add committed Jul 6, 2019
1 parent 19335b8 commit c2f2db97c6d6a415b78ee7b3e8924853d465e757
Showing with 6 additions and 6 deletions.
  1. +2 −2 docs/rules/no-global-assign.md
  2. +2 −2 docs/rules/no-native-reassign.md
  3. +2 −2 docs/rules/no-undef.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
```
@@ -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
```
@@ -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:

0 comments on commit c2f2db9

Please sign in to comment.
You can’t perform that action at this time.