Skip to content

Commit

Permalink
Document the "correct" way to build an array with values
Browse files Browse the repository at this point in the history
  • Loading branch information
edg2s committed May 1, 2020
1 parent 015edf6 commit 6f53045
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/rules/no-array-constructor.md
Expand Up @@ -38,6 +38,12 @@ Array(500)
new Array(someOtherArray.length)
```

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

[0, 1, 2]
```

## When Not To Use It

This rule enforces a nearly universal stylistic concern. That being said, this
Expand Down

0 comments on commit 6f53045

Please sign in to comment.