menu
no-redundant-closure-call
Disallow parameterless lambdas called where they are defined
Calling a parameterless lambda at its definition adds a callable boundary around one immediate computation. Instead, you SHOULD evaluate the lambda body directly.
Reported
1function answer(): int32 {2 return (() => 42)();3}Accepted
1function answer(): int32 {2 return 42;3}