preferArrayLiteralUse an array literal instead of new Array<T>() followed by index assignments.small-rules/no-array-constructor-index-assignmentDisallow new Array<T>() followed by contiguous index assignments; use an array literal instead.
preferArrayLiteralUse an array literal instead of new Array<T>() followed by index assignments.This rule does not accept options.
const samples = new Array<string>();samples[0] = replacement;After auto-fix
const samples = [replacement];const samples = [replacement];