airbnb / airbnb/javascript

Error in 16.1

Open
#1,026 4 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.