From 7015dc363517b6b37944b5ba81ea426e16ab2be6 Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 2 Nov 2021 00:55:21 -0700 Subject: [PATCH] [WIP] Add lint exceptions for tags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There are some places where we use tags where I think it's actually just the right thing to do. `next/image` is good for image optimization, but I don't think it's worth the proxying for Neopets art images that don't actually always have a higher-res version to begin with. Idk, maybe the species faces could be a decent choice, but right now we're solving it with `srcSet`, and that's fine. Doesn't seem worth migrating, let's just move on with our lives! 😅 I'm still leaving the lint rule on though, because I think it's a helpful reminder. (I don't think it catches `` though, which is a shame, because that would be our natural default in this app!) --- src/app/ItemPage/SpeciesFacesPicker.js | 6 +++--- .../support/AppearanceLayerSupportUploadModal.js | 1 + src/app/components/SquareItemCard.js | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/ItemPage/SpeciesFacesPicker.js b/src/app/ItemPage/SpeciesFacesPicker.js index 4be27d9..7864fa6 100644 --- a/src/app/ItemPage/SpeciesFacesPicker.js +++ b/src/app/ItemPage/SpeciesFacesPicker.js @@ -399,7 +399,7 @@ function CrossFadeImage(incomingImageProps) { opacity: 0; `} > - {/* eslint-disable-next-line jsx-a11y/alt-text */} + {/* eslint-disable-next-line jsx-a11y/alt-text, @next/next/no-img-element */} )} @@ -412,7 +412,7 @@ function CrossFadeImage(incomingImageProps) { opacity: 1; `} > - {/* eslint-disable-next-line jsx-a11y/alt-text */} + {/* eslint-disable-next-line jsx-a11y/alt-text, @next/next/no-img-element */} - {/* eslint-disable-next-line jsx-a11y/alt-text */} + {/* eslint-disable-next-line jsx-a11y/alt-text, @next/next/no-img-element */} {imageWithAlphaUrl && ( + // eslint-disable-next-line @next/next/no-img-element + {/* eslint-disable-next-line @next/next/no-img-element */}