airbnb / airbnb/javascript

if statements are not checked for preceding newline

Open
#1,762 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
148k
Forks
26.6k
PR merge metrics
No merged PRs in 30d

Description

Expected: failure
Actual: success
Source:
```js
if (this) {
this();
} if (this) {
this();
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported JavaScript snippet and identify which style or lint rule checks newline placement around if statements. Trace that rule's configuration and tests, then add coverage showing that two adjacent if statements on one line are rejected while properly separated statements remain valid.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.