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

make jsx-handler-names error messages less specific #348

Merged
merged 1 commit into from
Dec 5, 2015

Conversation

jakemmarsh
Copy link
Contributor

I realized the error messages were previously specifying a more specific method name than the rule actually enforced.

For example, onChange={this.itemClicked} would throw the warning Handler function for onChange prop key must be named handleChange, when really this.handleItemClick would (and should) pass.

@jakemmarsh
Copy link
Contributor Author

Not sure why the checks have failed?

yannickcr added a commit that referenced this pull request Dec 5, 2015
Update jsx-handler-names error messages to be less specific
@yannickcr yannickcr merged commit 7800ab1 into jsx-eslint:master Dec 5, 2015
@yannickcr
Copy link
Member

Thanks.

Not sure why the checks have failed?

Just a very small coverage decrease because you removed some tested lines, not an error for me.

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

Successfully merging this pull request may close these issues.

None yet

2 participants