--- description: 'Disallow generic `Array` constructors.' --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; > 🛑 This file is source code, not the primary documentation location! 🛑 > > See **https://typescript-eslint.io/rules/no-array-constructor** for documentation. It adds support for the generically typed `Array` constructor (`new Array()`). ```ts Array(0, 1, 2); new Array(0, 1, 2); ``` ```ts Array(0, 1, 2); new Array(x, y, z); Array(500); new Array(someOtherArray.length); ```