Reports ambiguous multiline expressions that could be misinterpreted.
✅ This rule is included in the ts stylistic and stylisticStrict presets.
When a line ends with an expression and the next line starts with certain characters (parentheses, brackets, or template literals), JavaScript may interpret them as a continuation of the previous line rather than separate statements.
This can lead to unexpected behavior and runtime errors that are difficult to debug.
AEconsB0valAE <= sp ansty="le--0:#82AAFF;--1:#3B61">B0identifi= sp>53(expressioB0doSomethi53(<);d ivclassNa="meco"><);d>);d>);d>AEconsB0daAE <= sp ansty="le--0:#D6DEEB;--1:#403F">53getArr= sp>5<3[sp ansty="le--0:#F78C6C;--1:#AA09">83[sp><20sp ansty="le--0:#D6DEEB;--1:#403F">520sp><3]sp ansty="le--0:#C792EA;--1:#8844">A3]sp>72val5<3;d ivclassNa="meco">3;d>AEconsB0resuAE <= sp ansty="le--0:#D6DEEB;--1:#403F">53calcula= sp>5<3`sp ansty="le--0:#ECC48D;--1:#3B61">B0template liter3`sp>5<3`sp ansty="le--0:#D6DEEB;--1:#403F">53`sp><3;d ivclassNa="meco"><`;d>`;d>3;d>AEfuncti5<3 sp ansty="le--0:#82AAFF;--1:#3B61">B0proce3 sp>11<()sp ansty="le--0:#D6DEEB;--1:#403F">53()sp>< {d ivclassNa="meec-li">nt< sp ansty="le--0:#C792EA;--1:#8844">AEcons sp>B<0asp ansty="le--0:#C792EA;--1:#8844">AE 0asp><= sp ansty="le--0:#D6DEEB;--1:#403F">5= sp> {d><3bd ivclassNa="meec-li">53< sp ansty="le--0:#D6DEEB;--1:#403F">53( sp>AE<||sp ansty="le--0:#D6DEEB;--1:#403F">53 ||sp>AB0execu53(3bd><);d ivclassNa="meec-li">5);d><3}d ivclassNa="meco"><}d>}d>3}d> 44AEco61B0v44A3F53identif3F53expres4<4AE. spans="tyle--0:#82AAFF;--1:#3B">61B0doSomet4AE.>3F5<3() ;divclass="Name">3()><;di vdivclass="Nameexpressive-">44AEco61B044A3F53getAr30<9820 spans="tyle--0:#D6DEEB;--1:#40">39820>4<4AE. spans="tyle--0:#7FDBCA;--1:#09">6E72v4AE.>3;di><;di vdivclass="Nameexpressive-">44AEco61B0re44A3F53calcul361B0template lit33;di><;di vdivclass="Nameexpressive-">44AEfunc361B0pro11<11() spans="tyle--0:#D6DEEB;--1:#40">3F11()><53 {divclass="Nameec-">de44AEco6<1B0a spans="tyle--0:#C792EA;--1:#88">44A1B0a>3F53 ><53b ;divclass="Nameec-">3F<53 spans="tyle--0:#D6DEEB;--1:#40">3F553 ><3(c spans="tyle--0:#C792EA;--1:#88">443(c >3F5<3 d) spans="tyle--0:#C792EA;--1:#88">43 d)><4AE. spans="tyle--0:#82AAFF;--1:#3B">61B0exe4AE.>3F553b><3() ;divclass="Nameec-">33()><);>);>;di>
This rule is not configurable.
If you consistently use semicolons and have tooling that enforces their presence, this rule may be unnecessary.
However, having this rule enabled provides an additional safety net against accidental multiline ambiguities.