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
jsx-handler-names
support skipping prop naming checks
#3722
Comments
The rule's entire purpose is to check prop names. I think it'd be reasonable to add an option with a list of component names to ignore, though. |
Okay, let me try to implement it! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My project has many components from other dependency packages, like:
Every time I come across them, I need to add an extra line of boring comments:
To be honest, I don't care about the names of these PROPS(even the components in my own project, I just want it to check my handler function's name)
To make matters worse, if the prop's name is not camelCase (e.g., all lowercase letters: "foofoo"), the option "eventHandlerPropPrefix" is not valid either, because it only applies to CamelCase naming:
So, it would be nice if there were an option like "checkPropName". For those who don't care about prop naming, simply turn it off.
like:
Anyway, I want to confirm if this option is necessary (and if anyone else has experienced this), and if so, I can create a PR to do it.
The text was updated successfully, but these errors were encountered: