no-array-from-fill
UnreleasedConfiguration
rslint.config.ts
Rule Details
Disallow calling .fill() after Array.from({ length: … }). Prefer the
mapping function argument of Array.from() when creating a fixed-length array
with generated values.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Using a mapping function also avoids unintentionally sharing one mutable value between every array element.