Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upA single preferred way for event methods prefix #1815
Comments
|
I believe the intention is to not be proscriptive about handler names, but to ensure all potential handler names are sorted as expected. |
|
So along with this should not |
|
That seems reasonable - altho the jsx-handler-names config doesn't matter since it's off. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In React config there is set up for two rules
jsx-handler-namesandsort-comp. First one is turned off and has default options assigned. First one suggests usinghandleprefix and the second one we haveonprefix for event handlers (if I am not wrong).I think there should be a single approach for this and as react documentation suggests maybe
handleis better one.