-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat(eslint): add react a11y plugin #365
base: master
Are you sure you want to change the base?
Conversation
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 plugin is also very good to add, but I think that with the recommended settings enabled this is going to cause havoc in existing apps which typically do very poorly on a11y.
The recommended settings will throw errors so after upgrading cli-style the app dev will have to fix ALL a11y issues before the code can be merged.
If this plugin has the ability to fix the issues it detects, I think this would be much less of a problem, but I don't know if this is possible and expect it isn't.
So perhaps we should include this plugin but only throw warnings?
The recommended preset doesn't appear to be very permissive 😒 . |
Hmm yeah that's not as permissive as I'd like. Ok, I'll see if I can come up with something more permissive. |
I took a look, but I'm not sure what the best approach would be here. I could set all the recommended rules to I haven't encountered any errors with the scheduler, which made me think that it's fairly permissive, but it does actually have a fair amount of rules that can error out. Ideas? |
We can make this opt in to add, so we'd do e.g. |
Yeah that sounds good to me. That way we can keep the config simple by just following the recommended settings. |
Hi! Due to a lack of activity on this issue over time (180 days) it seems to be stale. If still relevant, please provide information that moves it forward, e.g. additional information, a pull request with suggested changes, or a reason to keep it open. Any activity will keep it open, otherwise it will be closed automatically in 30 days. Thanks! 🤖 |
Automatically closing due to lack of activity. 🤖 |
This adds https://www.npmjs.com/package/eslint-plugin-jsx-a11y and enables the recommended preset. The plugin also ships with a strict preset, but I thought that starting out permissive is probably nicer for consumers of cli-style.