Inconsistent semicolon usage in examples (Arrays vs Functions)
- Dominant language
- JavaScript
- Stars
- 148k
- Forks
- 26.6k
- PR merge metrics
- No merged PRs in 30d
Description
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:
```js
// 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?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in Readme.md and compare the code examples in the Arrays sections 4.1–4.8 with the Functions sections 7.1–7.7 and the semicolon rule in Section 21. Update the affected examples so statements consistently use semicolons, then review the surrounding style-guide examples to confirm the inconsistency is resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100