no-unnecessary-array-flat-depth
Added in v0.9.1Configuration
rslint.config.ts
Rule Details
Disallow passing 1 as the depth argument to Array#flat().
The default depth of Array#flat() is already 1, so writing the argument
explicitly is redundant.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Depths other than the numeric literal 1 are left unchanged: