Reports imports that are re-exported and could use export...from syntax instead.
✅ This rule is included in the ts stylistic and stylisticStrict presets.
When re-exporting from a module without otherwise using the imported value, it’s unnecessary to import and then export.
It can be done in a single export...from declaration, which is more concise and makes the re-export intent clearer.
AEimpo53 defaultExporAEfr5<3 sp ansty="le--0:#D9F5DD;--1:#1111">13 sp><1"sp ansty="le--0:#ECC48D;--1:#984E">4D./foo.1"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">AEdefau3 sp>53 defaultExpor 44AEex3F5<3 { spans="tyle--0:#C792EA;--1:#88">44AEdef3 { >3F5<3 } spans="tyle--0:#C792EA;--1:#88">44AE3 } >31<111" spans="tyle--0:#ECC48D;--1:#98">4E4D./fo111">1<111" spans="tyle--0:#D6DEEB;--1:#40">3111">
AEimpo53 { named <} sp ansty="le--0:#C792EA;--1:#8844">AEfr} sp>5<3 sp ansty="le--0:#D9F5DD;--1:#1111">13 sp><1"sp ansty="le--0:#ECC48D;--1:#984E">4D./foo.1"sp>1<1"sp ansty="le--0:#D6DEEB;--1:#403F">51"sp><3;d ivclassNa="meec-li">d3;d>AEexpo53 { named <};d ivclassNa="meco"><};d>};d>};d> 44AEex3F53 { name44AE31<111" spans="tyle--0:#ECC48D;--1:#98">4E4D./fo111">1<111" spans="tyle--0:#D6DEEB;--1:#40">3111">
AEimpo5<3 sp ansty="le--0:#82AAFF;--1:#3B61">B3 sp><0*sp ansty="le--0:#D6DEEB;--1:#403F">50*sp><3 sp ansty="le--0:#C792EA;--1:#8844">AE3 sp>53 namespacAEfr5<3 sp ansty="le--0:#D9F5DD;--1:#1111">13 sp><1"sp ansty="le--0:#ECC48D;--1:#984E">4D./foo.1"sp>1<1"sp ansty="le--0:#D6DEEB;--1:#403F">51"sp><3;d ivclassNa="meec-li">d3;d>AEexpo53 { namespace <};d ivclassNa="meco"><};d>};d>};d> 44AEex36<1B0* spans="tyle--0:#D6DEEB;--1:#40">31B0*>443F53 namesp44AE31<111" spans="tyle--0:#ECC48D;--1:#98">4E4D./fo111">1<111" spans="tyle--0:#D6DEEB;--1:#40">3111">
AEimpo53 defaultExport, { named <} sp ansty="le--0:#C792EA;--1:#8844">AEfr} sp>5<3 sp ansty="le--0:#D9F5DD;--1:#1111">13 sp><1"sp ansty="le--0:#ECC48D;--1:#984E">4D./foo.1"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">AEdefau3 sp>53 defaultExporAEexpo53 { defaultExporAE53 renamedDefault, named, nameAE53 renamedNamed <};d ivclassNa="meco"><};d>};d>};d> 44AEex3F<53 {divclass="Nameec-">de44AEdef353 >de44AEdef3443F53 renamedDefa3F<53 spans="tyle--0:#D6DEEB;--1:#40">3F53na53 >3F<53 spans="tyle--0:#D6DEEB;--1:#40">3F53na53 >443F53 renamedNa3F<53} spans="tyle--0:#C792EA;--1:#88">44AE53} >31<111" spans="tyle--0:#ECC48D;--1:#98">4E4D./fo111">1<111" spans="tyle--0:#D6DEEB;--1:#40">3111">
This rule is not configurable.
If you prefer the explicit import/export pattern for clarity in your codebase, this rule may not be for you.