@masknet/prefer-early-return
Prefer early returns over full-body conditional wrapping in function declarations
/**
* @minItems Infinity
*/
export type Options = [
{
maximumStatements?: number
},
]
function foo() {
if (foo) {
bar()
baz()
}
}
function foo() {
if (!foo) return
bar()
baz()
}