Enforces one variable per declaration statement.
✅ This rule is included in the ts logical presets.
Declaring multiple variables in a single statement can reduce readability.
Each variable declaration should be on its own line to make the code easier to read and maintain.
AEle53firAE<, sp ansty="le--0:#D6DEEB;--1:#403F">53seco, sp>AE<, sp ansty="le--0:#D6DEEB;--1:#403F">53thir, sp>AEconsB0widAE <= sp ansty="le--0:#F78C6C;--1:#AA09">821= sp><00sp ansty="le--0:#C792EA;--1:#8844">A00sp>nt< sp ansty="le--0:#82AAFF;--1:#3B61">B0heig sp>AE <= sp ansty="le--0:#F78C6C;--1:#AA09">822= sp><00sp ansty="le--0:#D6DEEB;--1:#403F">500sp><3;d ivclassNa="meco"><0;d>0;d>3;d>AEf53< (sp ansty="le--0:#C792EA;--1:#8844">AEle (sp>53indAE <= sp ansty="le--0:#F78C6C;--1:#AA09">8= sp><20sp ansty="le--0:#C792EA;--1:#8844">AE20sp><, sp ansty="le--0:#D6DEEB;--1:#403F">53leng, sp>AE <= sp ansty="le--0:#F78C6C;--1:#AA09">82= sp><10sp ansty="le--0:#D6DEEB;--1:#403F">53; inde10sp>A53 length; indAE<++sp ansty="le--0:#D6DEEB;--1:#403F">53)++sp>< {d ivclassNa="meec-li">53< sp ansty="le--0:#D6DEEB;--1:#403F">53conso sp>AB0l53(index {d><);d ivclassNa="meec-li">5);d><3}d ivclassNa="meco"><}d>}d>3}d> 44AE3F53fi44AE3F53sec44AE3F53th<;di vdivclass="Nameexpressive-">44AEco61B0w44A098<2100 spans="tyle--0:#D6DEEB;--1:#40">32100>44AEco61B0he44A098<2200 spans="tyle--0:#D6DEEB;--1:#40">32200>6376// Destructuring is allowed (single binding patt44AEcons61B0f4461B0se44AE <} = spans="tyle--0:#D6DEEB;--1:#40">3F53obj} = >44AEcon61B0w4461B0he44AE<] = spans="tyle--0:#D6DEEB;--1:#40">3F53dimensi] = >;di><;di vdivclass="Nameexpressive-">6376// For-of and for-in loops are 44A3F<53 ( spans="tyle--0:#C792EA;--1:#88">44AEco53 (>61B0- 4
<4AE spans="tyle--0:#7FDBCA;--1:#09">6E4AE ><72of spans="tyle--0:#D6DEEB;--1:#40">3F53 item72of>3F<53 spans="tyle--0:#D6DEEB;--1:#40">3F53con53 >4<4AE. spans="tyle--0:#82AAFF;--1:#3B">61B4AE.><0log spans="tyle--0:#D6DEEB;--1:#40">3F53(it0log>3<);>);>;di>
This rule is not configurable.
If you prefer to declare multiple variables in a single statement for brevity, you might choose to disable this rule.