no-collapsible-if
May 31, 2019 ยท View on GitHub
Merging collapsible if statements increases the code's readability.
Noncompliant Code Example
if (x != undefined) {
if (y === 2) {
// ...
}
}
Compliant Solution
if (x != undefined && y === 2) {
// ...
}