An ESLint rule to require the sizes attribute for Next.js’s <Image>
An ESLint rule to require the sizes attribute for Next.js’s <Image>
cross-posted from: https://lemmy.blackeco.com/post/863915
The article mentions Next.js but it also applies to vanilla React as the
sizesattribute is useful even outside Next's<Image>component.
Comments