Skip to main content

newline-before-return

added in: 1.5.1
style

Enforces blank line between statements and return in a block.

Example

❌ Bad:

  if ( ... ) {
...
return ...; // LINT
}

✅ Good:

  if ( ... ) {
return ...;
}

if ( ... ) {
...

return ...;
}