Skip to content

Add select eslint-plugin-jsx-a11y rules to lint config. - #175

Merged
gaearon merged 1 commit into
react:masterfrom
beefancohen:master
Jul 25, 2016
Merged

Add select eslint-plugin-jsx-a11y rules to lint config.#175
gaearon merged 1 commit into
react:masterfrom
beefancohen:master

Conversation

@beefancohen

Copy link
Copy Markdown
Contributor

This project is a really good use case to apply some accessibility rules to the lint config. For beginners getting started with React and/or web in general, we can also teach & enforce basic accessibility rules in the web at author time.

For now, I’ve just applied to the rules that are listed in eslint-config-airbnb because these are most real-world tested, and we can continue to add as you see fit.

I know from Twitter that you're wary about adding more dependencies, but very happy to help if there are any questions/issues/concerns about the plugin!

This project is a really good use case to apply some accessibility
rules to the lint config. For beginners getting started with React, we
can also teach/enforce basic accessibility rules in the web at author
time.
For now, I’ve just applied to the rules that are listed in
`eslint-config-airbnb` because these are most real-world tested, and we
can continue to add.
Happy to help if there are any questions/issues/concerns about the
plugin!
@ghostghost added the CLA Signed label Jul 25, 2016
@gaearon

Copy link
Copy Markdown
Contributor

Another constraint is we don’t want to overwhelm developers with lint warnings, or they’ll just start ignoring them. These rules appear sensible to me and I’d be up to merge this.

I’d like a 👍 from @lacker on this.

@gaearongaearon added this to the 0.2.0 milestone Jul 25, 2016
@ghostghost added the CLA Signed label Jul 25, 2016
@mxstbr

mxstbr commented Jul 25, 2016

Copy link
Copy Markdown
Contributor

This looks very solid to me, great addition!

@gaearon
gaearon merged commit 90d49f8 into react:masterJul 25, 2016
@lacker

Copy link
Copy Markdown
Contributor

This looks good to me. I can't think of any reason offhand for images to not have an alt, although honestly I know I skip alts a lot, so let's merge it and see.

@beefancohen

Copy link
Copy Markdown
ContributorAuthor

Great, thanks!

FYI - don't need alt when role=presentation

<imgsrc="foo"alt=""/><imgsrc="foo"role="presentation"/>

@gaearongaearon mentioned this pull request Jul 27, 2016
@locklockBot locked and limited conversation to collaborators Jan 22, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@beefancohen@gaearon@mxstbr@lacker