Saltar al contenido principal

newline-before-return

added in: 1.0.0 style

Enforces a blank line between statements and return in a block.

Example

Bad:

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

Good:

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

if ( ... ) {
...

return ...;
}