no-array-constructor
Configuration
rslint.config.ts
Rule Details
Disallow generic Array constructors.
Use of the Array constructor to create arrays is generally discouraged in favor of array literal notation because of the single-argument pitfall and because the Array global may be redefined.
The rule allows single-argument calls since they are commonly used to create arrays with a specific size.
Examples of incorrect code for this rule:
Examples of correct code for this rule: