-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rule "Prefer lighter formats for image files" #269
Conversation
@dedece35 |
Indeed. This rule is clearly about green code, not clean code :) |
Thank you for the feedback! I will add this reference into rule documentation. |
Hello,
I want to propose a new rule in the ecoCode repository. You can find its declaration below.
What do you think of it?
Platform
JavaScript (React / JSX) and HTML in the future
Main caracteristics
Severity / Remediation Cost
I propose a remediation cost of 5min per image, in order to convert it to another format, based on needs.
Rule complete description
Check asciidoc in the PR content.
Implementation principle
<img />
elements<img />
elements inside<picture>
elements, because its used to support multiple formats (to support older browsers for example)