### 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](https://docs.rome.tools/lint/rules/noConstructorReturn) (#3805) - [noSetterReturn](https://docs.rome.tools/lint/rules/noSetterReturn) (#3783) - [noVoidTypeReturn](https://docs.rome.tools/lint/rules/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`. ```ts class A { constructor() { this._prop = 0; return void 0; } set prop(prop: number) { this._prop = prop; return void 0; } function f(): void { return 0; } } ``` Note: currently, ESLint does not support `return void`.
Description
Keywords
linter, rules, return, void, noSetterReturn, noConstructorReturn, noVoidTypeReturn
Summary
This issue is open for gathering opinions and interest about the support
of
return voidin 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.