This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[Feat] Allow return void
for rules noSetterReturn
noConstructorReturn
noVoidTypeReturn
#3827
Labels
task
A task, an action that needs to be performed
Description
Keywords
linter, rules, return, void, noSetterReturn, noConstructorReturn, noVoidTypeReturn
Summary
This issue is open for gathering opinions and interest about the support
of
return void
in the following rules:noConstructorReturn
#3805)noSetterReturn
#3783)noVoidTypeReturn
#3806)Currently, these rules disallow any return statement with an argument.
Only returning without argument is allowed.
The rule could be relaxed for supporting
return void
.Note: currently, ESLint does not support
return void
.The text was updated successfully, but these errors were encountered: