From 6822f492f84eafb24684725c7686c5ac3913271d Mon Sep 17 00:00:00 2001 From: Ed S Date: Fri, 1 May 2020 23:50:24 +0100 Subject: [PATCH] Merge code blocks --- docs/rules/no-array-constructor.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/docs/rules/no-array-constructor.md b/docs/rules/no-array-constructor.md index c3f9e9c3b0bc..22fbde64ef05 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,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] ```