Skip to content
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

[core] Update eslint-plugin-jsx-a11y #44701

Merged

Conversation

ZeeshanTamboli
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli commented Dec 9, 2024

Closes #39752. The CI linting test fails for td and th elements.

I was waiting for this issue to be resolved, but since we use airbnb base config, the Airbnb config would need updating. I’ve opened a new issue for that: airbnb/javascript#3069. But it won't be updated sooner and it is suggested to override configs.

To unblock the eslint-plugin-jsx-a11y update, this PR overrides the rule by adding td and th to the ignoreElements list.

@ZeeshanTamboli ZeeshanTamboli added the core Infrastructure work going on behind the scenes label Dec 9, 2024
@ZeeshanTamboli ZeeshanTamboli changed the title Update eslint plugin jsx a11y Update eslint-plugin-jsx-a11y Dec 9, 2024
@mui-bot
Copy link

mui-bot commented Dec 9, 2024

Netlify deploy preview

https://deploy-preview-44701--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against df0d0d1

@ZeeshanTamboli ZeeshanTamboli marked this pull request as ready for review December 9, 2024 08:39
@ZeeshanTamboli ZeeshanTamboli changed the title Update eslint-plugin-jsx-a11y [core] Update eslint-plugin-jsx-a11y Dec 9, 2024
@ZeeshanTamboli ZeeshanTamboli requested a review from a team December 9, 2024 08:41
@ZeeshanTamboli
Copy link
Member Author

@mui/code-infra Can this be reviewed?

.eslintrc.js Outdated Show resolved Hide resolved
Copy link
Member

@Janpot Janpot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

@@ -158,6 +164,16 @@ module.exports = /** @type {Config} */ ({
],
// We are a library, we need to support it too
'jsx-a11y/no-autofocus': 'off',
// Remove when issues are fixed
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/959
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ZeeshanTamboli ZeeshanTamboli merged commit 86cc01d into mui:master Dec 16, 2024
19 checks passed
@ZeeshanTamboli ZeeshanTamboli deleted the update-eslint-plugin-jsx-a11y branch December 16, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants