diff --git a/src/prefer-lighter-formats-for-image-files.js b/src/prefer-lighter-formats-for-image-files.js new file mode 100644 index 0000000..5a9b508 --- /dev/null +++ b/src/prefer-lighter-formats-for-image-files.js @@ -0,0 +1,41 @@ +import React from "react"; + +function ImageFilesComponent() { + return ( +
+ + {/* Compliant: WEBP */} + A cat + + {/* Compliant: AVIF */} + A cat + + {/* Compliant: JPEG XL */} + A cat + + {/* Compliant: JPG inside a picture */} + + + ... + + + {/* Compliant: not handled */} + + + + {/* Non-compliant: JPG*/} + A cat + + {/* Non-compliant: PNG*/} + A cat + + {/* Non-compliant: EMPTY*/} + A cat + A cat + A cat + +
+ ); +} + +export default ImageFilesComponent;