green-code-initiative / ecoCode-javascript

Reduce the environmental footprint of your JS/TS software programs
https://ecocode.io
GNU General Public License v3.0
21 stars 18 forks source link

No import all from library (team 106 critères) #5

Closed JuBaas closed 1 year ago

JuBaas commented 1 year ago

This rule aims to reduce weight of programs by using only needed modules. Many libraries export only one module by default, but some of them are exporting ES modules or submodules. We should use them to select more precisly needed modules and avoid unnecessarily overloading files weight.

utarwyn commented 1 year ago

@JuBaas Did you have time to apply the feedbacks?

JuBaas commented 1 year ago

@JuBaas Did you have time to apply the feedbacks?

Not yet. I'll do it tomorrow.