no-void
Added in v0.8.1Configuration
rslint.config.ts
Rule Details
Disallow use of the void operator.
Examples of incorrect code for this rule:
Options
allowAsStatement
When true, permits void as a standalone statement but still prohibits its
use in expression contexts such as variable assignments or return statements.
Default: false.
Examples of incorrect code for this rule with { "allowAsStatement": true }:
Examples of correct code for this rule with { "allowAsStatement": true }: