Skip to content

Commit

Permalink
Docs: Merge example code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
edg2s committed Mar 18, 2021
1 parent 6f53045 commit 1042552
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions docs/rules/no-array-constructor.md
Expand Up @@ -16,10 +16,6 @@ Examples of **incorrect** code for this rule:
/*eslint no-array-constructor: "error"*/

Array(0, 1, 2)
```

```js
/*eslint no-array-constructor: "error"*/

new Array(0, 1, 2)
```
Expand All @@ -30,16 +26,8 @@ Examples of **correct** code for this rule:
/*eslint no-array-constructor: "error"*/

Array(500)
```

```js
/*eslint no-array-constructor: "error"*/

new Array(someOtherArray.length)
```

```js
/*eslint no-array-constructor: "error"*/

[0, 1, 2]
```
Expand Down

0 comments on commit 1042552

Please sign in to comment.