avoidConstructorEnumerationDo not use Array constructor enumeration arguments. Use an array literal instead.small-rules/no-array-constructor-elementsDisallow array constructor element forms and enforce roblox-ts-aware constructor patterns.
avoidConstructorEnumerationDo not use Array constructor enumeration arguments. Use an array literal instead.avoidLengthConstructorInStandardLength-based Array constructor is not allowed in standard mode. Prefer Array.from({ length: n }).avoidSingleArgumentConstructorSingle-argument Array constructor form is not allowed here. Use an array literal instead.collapseArrayPushInitializationCollapse new Array<T>() + consecutive .push(...) calls into a single array literal initializer.requireExplicitGenericOnNewArraynew Array() must use an explicit generic argument or a contextual Array<T>/ReadonlyArray<T> annotation.suggestArrayFromLengthReplace with Array.from({ length: value }).suggestArrayLiteralReplace constructor form with an array literal.suggestCollapseArrayPushInitializationCollapse constructor + push sequence into a single array literal initializer.This rule accepts one options object after the severity.
const values = new Array("a", "b");After auto-fix
const values = ["a", "b"];const value = new Array<string>();