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

Fix checks involving the tabIndex attribute that do not account for integer literals #48

Merged
merged 3 commits into from
May 20, 2016

Conversation

sohkai
Copy link
Contributor

@sohkai sohkai commented May 20, 2016

tabIndex values can be specified with both strings (ie. tabIndex="0") or integers (ie. tabIndex={0}). Currently, some of the checks for tabIndex simply coerce the attribute's value into a boolean, so using {0} fails.

This change also enforces tabIndexs to have valid values in order for them to be considered present, rather than just checking for their existence.

@beefancohen
Copy link
Contributor

dude you rock. thank you

@coveralls
Copy link

coveralls commented May 20, 2016

Coverage Status

Coverage remained the same at 95.993% when pulling bc75cf0 on SohKai:fix-integer-attribute-checks into c2ccd06 on evcohen:master.

@beefancohen beefancohen merged commit bbcc1a2 into jsx-eslint:master May 20, 2016
@beefancohen
Copy link
Contributor

v1.2.2 published with this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants