This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
[Feat] Allow return void
for rules noSetterReturn
noConstructorReturn
noVoidTypeReturn
#4047
Conaclos
started this conversation in
Suggestions
Replies: 1 comment
-
👋 @rome/staff please triage this issue by adding one of the following labels: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
.Beta Was this translation helpful? Give feedback.
All reactions