Error in 16.1
Open
editorial
pull request wanted
semver-breaking: guide change
- Dominant language
- JavaScript
- Stars
- 148k
- Forks
- 26.6k
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
In 16.1, it says:
> Use braces with all multi-line blocks.
But in the examples, there's a contradiction:
```
// good
if (test) return false;
```
And
```
// bad
function foo() { return false; }
```
The second one shouldn't say 'bad' since it's not multi-line block like the rule says.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at section 16.1 of the JavaScript Style Guide and compare the stated multi-line-block rule with the two examples in the issue. Correct the example or its label so the guidance is consistent, then verify that the section no longer contradicts itself.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100