-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent jsx-handler-names from incorrectly flagging
only
The rule was triggered for a property `only`. This is because the regex was checking for the prefix (by default "on") followed by any characters. We can fix this by ensuring that the prefix we are checking for is always followed by an uppercase character. It was suggested in the issue that we might want to allow this rule to accept a regex, which would allow for more flexibility in how this rule is configured. I think this might be a nice enhancement, but since this fix was so simple I decided to go with the quick and easy win at this time. Fixes #571
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters