newline-before-return
added in: 1.5.1
style
Enforces blank line between statements and return in a block.
info
The fix for this rule is available only in "Teams" version.
Example
❌ Bad:
if ( ... ) {
...
return ...; // LINT
}
✅ Good:
if ( ... ) {
return ...;
}
if ( ... ) {
...
return ...;
}