Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

A single preferred way for event methods prefix

未关闭
#1,815 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
eslint, javascript
领域
tooling

调研方向

检查 jsx-handler-names 和 sort-comp 的 React 配置项,然后查看相关的 ESLint 规则文档以及 style guide 中关于事件处理器命名的指导。决定项目应统一使用哪个前缀,并更新配置和指导,使它们不再冲突;当一种约定得到一致的文档说明和强制执行时即完成。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
JavaScript
星标
148k
派生
26.5k
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

airbnb/javascript 的其他 Issue

查看 airbnb/javascript 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。