prefer-array-flat-map
Configuration
rslint.config.ts
Rule Details
Prefer Array#flatMap() over chaining Array#map() and Array#flat() when the flat depth is omitted or exactly 1.
Examples of incorrect code for this rule:
Examples of correct code for this rule: