Reports unnecessary .bind() calls.
✅ This rule is included in the ts logical presets.
Using .bind() on a function that doesn’t use this is unnecessary.
Additionally, using .bind() on arrow functions has no effect since arrow functions have lexical this binding.
AEconsB0handlAE = functio11<()sp ansty="le--0:#C792EA;--1:#8844">AE()sp>< {d ivclassNa="meec-li">nt< sp ansty="le--0:#D6DEEB;--1:#403F">53conso sp>AB0l5<3(sp ansty="le--0:#D9F5DD;--1:#1111">13(sp><1"sp ansty="le--0:#ECC48D;--1:#984E">4Dhel1"sp>1<1"sp ansty="le--0:#D6DEEB;--1:#403F">51"sp><3)sp ansty="le--0:#C792EA;--1:#8844">A3)sp> {d>AE<}.sp ansty="le--0:#82AAFF;--1:#3B61">B0bi}.sp>5<3(sp ansty="le--0:#7FDBCA;--1:#096E">72th3(sp>53<);d ivclassNa="meco"><);d>);d>);d> 44AEco61B0han44AE = funct11<11() spans="tyle--0:#C792EA;--1:#88">4411()>de3F53con4<4AE. spans="tyle--0:#82AAFF;--1:#3B">61B4AE.><0log spans="tyle--0:#D6DEEB;--1:#40">30log>1<111" spans="tyle--0:#ECC48D;--1:#98">4E4Dh111">1<111" spans="tyle--0:#D6DEEB;--1:#40">3111">4<4AE ;divclass="Nameec-">4<4AE} spans="tyle--0:#D6DEEB;--1:#40">34AE}>4AE><;}>;}>
AEconsB0callbaAE <= sp ansty="le--0:#D6DEEB;--1:#403F">5= sp><3(sp ansty="le--0:#D9F5DD;--1:#1111">113(sp><()sp ansty="le--0:#C792EA;--1:#8844">AE =>()sp>< {d ivclassNa="meec-li">nt< sp ansty="le--0:#7FDBCA;--1:#096E">72th sp>AB0proce53<()sp ansty="le--0:#C792EA;--1:#8844">A()sp> {d>A5<3)sp ansty="le--0:#C792EA;--1:#8844">A3)sp>B0bi53(context<);d ivclassNa="meco"> { this.process();}).bind(context"><);d>);d>);d> 44AEco61B0call44A11<11() spans="tyle--0:#C792EA;--1:#88">44AE 11()><=> {divclass="Nameec-">de6E724<4AE. spans="tyle--0:#82AAFF;--1:#3B">61B0pro4AE.>3F<53() spans="tyle--0:#C792EA;--1:#88">453()>=> ><4AE ;divclass="Nameec-">4<4AE} spans="tyle--0:#D6DEEB;--1:#40">34AE}>4AE> { this.process()"><;}>;}>
This rule is not configurable.
If you use .bind() with additional arguments to create partially applied functions,
this rule should not flag those cases.