require-early-exit-on-new-line
WarningPut a single-statement return or throw on the line after the if condition, with or without braces.
if (ready) return;if (ready) throw new Error("not ready");if (ready) return;if (ready) throw new Error("not ready");if (ready) { return;}if (ready) { throw new Error("not ready");}How to fix
Write the condition on one line and the early exit on the next, even when the if has no braces.
This rule has no fix. Let the formatter handle the surrounding indentation.