A single preferred way for event methods prefix
- Dominant language
- JavaScript
- Stars
- 148k
- Forks
- 26.6k
- PR merge metrics
- No merged PRs in 30d
Description
In React config there is set up for two rules `jsx-handler-names` and `sort-comp`. First one is turned off and has default options assigned. First one suggests using `handle` prefix and the second one we have `on` prefix for event handlers (if I am not wrong).
I think there should be a single approach for this and as react documentation suggests maybe `handle` is better one.
Contributor guide
No contributing guide indexed for this repository
Research direction
Inspect the React config entries for jsx-handler-names and sort-comp, then review the relevant ESLint rule documentation and the style guide's event-handler naming guidance. Decide which prefix the project should standardize on and update the configuration and guidance so they no longer conflict; done when one convention is consistently documented and enforced.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- eslint, javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100