Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

lint/control-flow/prefer-bare-return

Not in any set. Safe fix.

What it does

A return statement wishing to return void should not return null.

Configuration

[lint.rules]
"control-flow/prefer-bare-return" = "error"

To skip it in some files, add an override or a @pun-ignore-file comment.

Replaces

Linked rules

More lint/control-flow rules · Edit this page

Last updated on

Was this page helpful?