]> git.proxmox.com Git - pve-eslint.git/blobdiff - eslint/docs/rules/no-array-constructor.md
bump version to 8.4.0-3
[pve-eslint.git] / eslint / docs / rules / no-array-constructor.md
index 863f56d0b77a4a5a797ce897b57cb8b71923ac9d..22fbde64ef05faef1230f5e2f8e05480cf646910 100644 (file)
@@ -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