diff --git a/docs/rules/no-array-constructor.md b/docs/rules/no-array-constructor.md index 863f56d0b77..22fbde64ef0 100644 --- a/docs/rules/no-array-constructor.md +++ b/docs/rules/no-array-constructor.md @@ -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) ``` @@ -30,12 +26,10 @@ Examples of **correct** code for this rule: /*eslint no-array-constructor: "error"*/ Array(500) -``` - -```js -/*eslint no-array-constructor: "error"*/ new Array(someOtherArray.length) + +[0, 1, 2] ``` ## When Not To Use It