Skip to content

Commit

Permalink
Docs: Replace global true and false with writable and readonly in rul…
Browse files Browse the repository at this point in the history
…es (#11956)
  • Loading branch information
mdjermanovic authored and aladdin-add committed Jul 6, 2019
1 parent 19335b8 commit c2f2db9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/rules/no-global-assign.md
Expand Up @@ -37,7 +37,7 @@ top = 1

```js
/*eslint no-global-assign: "error"*/
/*globals a:false*/
/*global a:readonly*/

a = 1
```
Expand All @@ -61,7 +61,7 @@ onload = function() {}

```js
/*eslint no-global-assign: "error"*/
/*globals a:true*/
/*global a:writable*/

a = 1
```
Expand Down
4 changes: 2 additions & 2 deletions docs/rules/no-native-reassign.md
Expand Up @@ -39,7 +39,7 @@ top = 1

```js
/*eslint no-native-reassign: "error"*/
/*globals a:false*/
/*global a:readonly*/

a = 1
```
Expand All @@ -63,7 +63,7 @@ onload = function() {}

```js
/*eslint no-native-reassign: "error"*/
/*globals a:true*/
/*global a:writable*/

a = 1
```
Expand Down
4 changes: 2 additions & 2 deletions docs/rules/no-undef.md
Expand Up @@ -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:

Expand Down

0 comments on commit c2f2db9

Please sign in to comment.