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

Inconsistent semicolon usage in examples (Arrays vs Functions)

未关闭 适合新手
#3,152 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@Developer-shivamMishra 已经在做这个了。

开始于 2026年9月26日。

  • #3321 来自 @Developer-shivamMishra —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
冷清
技术栈
javascript
领域
documentation

调研方向

从 Readme.md 开始,将 Arrays 部分 4.1–4.8 中的代码示例与 Functions 部分 7.1–7.7 以及 Section 21 中的分号规则进行比较。更新受影响的示例,使语句统一使用分号,然后检查周围样式指南中的示例,以确认不一致问题已解决。

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

描述

Description

(Readme.md)
I noticed an inconsistency in semicolon usage across different sections of the style guide.

  • In the Arrays section (4.1–4.8), many examples omit semicolons at the end of statements.
  • In the Functions section (7.1–7.7), the examples consistently use semicolons.

Since the Airbnb style guide explicitly recommends always using semicolons (see Section 21: Semicolons), this inconsistency might confuse developers who are following the guide.


Proposed Fix
Ensure that all code examples across the style guide consistently include semicolons at the end of statements.

For example:

// Current (Arrays section):
const items = []

// Suggested fix:
const items = [];

I’d be happy to work on fixing this if maintainers agree. Could you please assign this issue to me?

主要语言
JavaScript
星标
148k
派生
26.6k
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 摘要。