💅 Should allow void
returns when function return type is void
#4173
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
S-Help-wanted
Status: you're familiar with the code base and want to help the project
Environment information
Rule name
lint/correctness/noVoidTypeReturn
Playground link
https://biomejs.dev/playground/?code=ZgB1AG4AYwB0AGkAbwBuACAAZgBuACgAKQA6ACAAdgBvAGkAZAAgAHsACgAgACAAaQBmACAAKABzAG8AbQBlAHQAaABpAG4AZwAoACkAKQAgAHIAZQB0AHUAcgBuACAAdgBvAGkAZAAgAGQAbwBTAG8AbQBlAHQAaABpAG4AZwAoACkAOwAKACAAIABkAG8AcwBTAG0AZQB0AGgAaQBuAGcARQBsAHMAZQAoACkAOwAKAH0A
Expected result
It should not show an error when function return type is
void
and function explicitly returnsvoid
using thevoid
operantor:Code of Conduct
The text was updated successfully, but these errors were encountered: