-
Notifications
You must be signed in to change notification settings - Fork 7
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
Extend jsx-a11y to also look for Next.js Images #257
Conversation
🦋 Changeset detectedLatest commit: 0308a62 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@@ -69,6 +69,14 @@ module.exports = { | |||
], | |||
|
|||
rules: { | |||
// Extend jsx-a11y/alt-text to also look for Next.js Images | |||
"jsx-a11y/alt-text": [2, { | |||
"elements": ["img", "object", "area", "input[type=\"image\"]"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation wasn't clear if adding new elements could/would erase the current ones, so I added the defaults.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good call to be safe 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✨
@@ -69,6 +69,14 @@ module.exports = { | |||
], | |||
|
|||
rules: { | |||
// Extend jsx-a11y/alt-text to also look for Next.js Images | |||
"jsx-a11y/alt-text": [2, { | |||
"elements": ["img", "object", "area", "input[type=\"image\"]"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good call to be safe 👍
Description
This PR extends the jsx-a11y/alt-text rule to also look for Next.js Images.
PR Checklist 🚀