-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Include accessibility rules #17
Comments
This is blocked by eslint/eslint#3458. |
Why? Aren't |
@fregante Yes, but they are plugins everyone would want. |
How would eslint/eslint#3458 solve that? |
A dependency is cheap, but requiring people to manually install stuff is not. |
I wonder if it's possible to expose |
Doesn't everyone just copy-paste the whole string from the readme? It's already long: $ npm install --save-dev eslint-config-xo eslint-config-xo-react eslint-plugin-react eslint-plugin-react-hooks I suppose that the issue here would be for existing users who'd have install |
Every style guide using this package would have to include install instructions for
This too. I don't want to inconvenience people and force them to install, maintain, and possibly upgrade a plugin they don't want. |
Perhaps it is possible to work around this by trying to require |
This logic locks you into never adding another plugin right? That doesn't sound very constructive. The idea with XO is to be opinionated, when you let optionality take precedent you're breaking that philosophy and people might as well just go back to copy-paste-tweaking ESLint configs. Accessibility needs people to be opinionated in its favour. Skipping it is a path of lazyness that we as a community take far too often. I urge you to take a stand and say "XO supports a11y - if you want to built inaccessible things this is not the tool for you". |
I'd rather it be required. But if it had to be optional, a warning should still be printed to avoid silent accidental failure.
|
Most applications ought to follow accessibility standards to be inclusive and usable for people with disabilities. To that end, there is a fantastic ESLint plugin, jsx-a11y, which provides rules that enforce best practices around accessibility.
Thoughts on using the plugin here?
The text was updated successfully, but these errors were encountered: