no-unreadable-iife
UnreleasedConfiguration
rslint.config.ts
Rule Details
Disallow immediately invoked arrow functions with parenthesized expression bodies. A block body makes the function body easier to distinguish from the surrounding call.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Suggestions
This rule offers an editor suggestion to replace the parenthesized body with a block containing a return statement. It does not automatically fix code. The suggestion is withheld when removing the parentheses would discard comments outside the expression. Comments inside the expression are preserved.
Options
This rule has no options.