Reports using 1 as the depth argument of .flat() since it is the default.
✅ This rule is included in the ts stylistic and stylisticStrict presets.
The default depth for Array.prototype.flat() is 1, so passing it explicitly is redundant.
This rule reports when 1 is passed as the depth argument to .flat().
AEdeclare consB0arr7<2:sp ansty="le--0:#C792EA;--1:#8844">A2:sp>B0numb53[][<];d ivclassNa="meec-li">53arrAB0fl5<3(sp ansty="le--0:#F78C6C;--1:#AA09">83(sp><21sp ansty="le--0:#D6DEEB;--1:#403F">5321sp>];d><);d ivclassNa="meco"><);d>);d>);d>AEdeclare consB0arr7<2:sp ansty="le--0:#C792EA;--1:#8844">A2:sp>B0numb53[]<[]sp ansty="le--0:#C792EA;--1:#8844">A[]sp>7<2|sp ansty="le--0:#C792EA;--1:#8844">A2|sp>B0undefin5<3;d ivclassNa="meec-li">53arrAE.sp ansty="le--0:#82AAFF;--1:#3B61">B0fl?.sp>5<3(sp ansty="le--0:#F78C6C;--1:#AA09">83(sp><21sp ansty="le--0:#D6DEEB;--1:#403F">5321sp>3;d><);d ivclassNa="meco"><);d>);d>);d> 44AEdeclare co61B0a64<4AE spans="tyle--0:#C5E478;--1:#3B">61B0nu4AE >3F53[<][] ;divclass="Nameec-">3F53a4<4AE. spans="tyle--0:#82AAFF;--1:#3B">61B04AE.>3F5][]><3() ;divclass="Name">3()><;di vdivclass="Nameexpressive-">44AEdeclare co61B0a64<4AE spans="tyle--0:#C5E478;--1:#3B">61B0nu4AE >3F53[][<][] ;divclass="Nameec-">3F53a4<4AE. spans="tyle--0:#82AAFF;--1:#3B">61B04AE.>30<9822 spans="tyle--0:#D6DEEB;--1:#40">3F9822>][]><53) ;divclass="Name"><(2)>(2)>53)>;di><;di vdivclass="Nameexpressive-">44AEdeclare co61B0a64<4AE spans="tyle--0:#C5E478;--1:#3B">61B0nu4AE >3F5<3[] ;divclass="Nameec-">3F53a4<4AE. spans="tyle--0:#82AAFF;--1:#3B">61B04AE.>361B0Infi3F3[]><53) ;divclass="Name">53)>;di>
This rule is not configurable.
If you prefer to be explicit about the depth argument for readability or consistency, you may disable this rule.