Reports unnecessary "use strict" directives in ES modules and classes.
✅ This rule is included in the ts logical presets.
ECMAScript modules and class bodies are automatically in strict mode.
The "use strict" directive has no effect in these contexts and is redundant.
This rule reports on "use strict" directives that can be safely removed.
1<1"sp ansty="le--0:#ECC48D;--1:#984E">4Duse stri1"sp>1<1"sp ansty="le--0:#D6DEEB;--1:#403F">51"sp><3;d ivclassNa="meec-li">d3;d>AEexpo5<3 sp ansty="le--0:#C792EA;--1:#8844">AEfuncti3 sp>5<3 sp ansty="le--0:#82AAFF;--1:#3B61">B0calcula3 sp>1<1(sp ansty="le--0:#D7DBE0;--1:#403F">53val1(sp>7<2:sp ansty="le--0:#D6DEEB;--1:#403F">52:sp><3 sp ansty="le--0:#C5E478;--1:#3B61">B0numb3 sp>1<1)sp ansty="le--0:#D6DEEB;--1:#403F">531)sp>< {d ivclassNa="meec-li">nt< sp ansty="le--0:#C792EA;--1:#8844">AEretu sp>53 valuA5<3 sp ansty="le--0:#F78C6C;--1:#AA09">83 sp><22sp ansty="le--0:#D6DEEB;--1:#403F">522sp> {d><3;d ivclassNa="meec-li">53;d><3}d ivclassNa="meec-li">d3}d>AEexpo5<3 sp ansty="le--0:#C792EA;--1:#8844">AEcla3 sp>5<3 sp ansty="le--0:#FFCB8B;--1:#1111">11Calculat3 sp>53< {d ivclassNa="meec-li">nt< sp ansty="le--0:#82AAFF;--1:#3B61">B0a sp>1<1(sp ansty="le--0:#D7DBE0;--1:#403F">51(sp><3asp ansty="le--0:#7FDBCA;--1:#096E">73asp><2:sp ansty="le--0:#D6DEEB;--1:#403F">52:sp><3 sp ansty="le--0:#C5E478;--1:#3B61">B0numb3 sp><53sp ansty="le--0:#D6DE">EB53sp><, sp ansty="le--0:#D7DB">E, sp><0bsp ansty="le--0:#7FDBCA;--1:#096E">70bsp><2:sp ansty="le--0:#D6DEEB;--1:#403F">52:sp><3 sp ansty="le--0:#C5E478;--1:#3B61">B0numb3 sp>1<1)sp ansty="le--0:#D6DEEB;--1:#403F">531)sp> {d>< {d ivclassNa="meec-li">nt < sp ansty="le--0:#C792EA;--1:#8844">AEretu sp>53 A53 {d>53< sp ansty="le--0:#D6DEEB;--1:#403F">5 sp><3}d ivclassNa="meec-li">53}d><3}d ivclassNa="meco"><}d>}d>3}d> 44AEex344AEfunc361B0calcu1<111( spans="tyle--0:#D7DBE0;--1:#40">3F53v111(>6361B0nu1<111) spans="tyle--0:#D6DEEB;--1:#40">3F111)><53 {divclass="Nameec-">de44AEre3F53 va4<4AE* spans="tyle--0:#D6DEEB;--1:#40">34AE*>0<9822 spans="tyle--0:#D6DEEB;--1:#40">39822>53 >3c44AEex344AEc31111Calcul3F<53 {divclass="Nameec-">de61B<0add spans="tyle--0:#D9F5DD;--1:#11">10add><111( spans="tyle--0:#D7DBE0;--1:#40">3111(>6361B0nu<3F53 spans="tyle--0:#D6">DE3F53>D6361B0nu1<111) spans="tyle--0:#D6DEEB;--1:#40">3F111)>53 ><53 {divclass="Nameec-">dent< spans="tyle--0:#C792EA;--1:#88">44AEre >3F5<3 a spans="tyle--0:#C792EA;--1:#88">43 a ><4AE+ spans="tyle--0:#D6DEEB;--1:#40">3F54AE+>53 ><3 b ;divclass="Nameec-">3F<53 spans="tyle--0:#D6DEEB;--1:#40">353 >3 b>3< }> }>
This rule is not configurable.
If you are working in a JavaScript environment with non-standard semantics, or otherwise have tooling that requires you to use seemingly redundant "use strict" directives, this rule might not be for you.