no-confusing-void-expression
Configuration
rslint.config.ts
Rule Details
Disallows void type expressions from being used in misleading locations such as being assigned to a variable, returned from a function, or used inside other expressions. The void type in TypeScript indicates a function returns nothing, and using void-returning expressions in value positions can lead to confusing code.
Examples of incorrect code for this rule:
Examples of correct code for this rule: