menu

no-empty-function

Disallow empty functions

An uncommented empty concrete function and an accidentally unfinished function have the same source shape. Instead, you SHOULD remove the function, implement it, or explain the intentional empty body with a comment.

Reported

1function initialize(): void {}

Accepted

1function initialize(): void {2    // initialization is intentionally unnecessary3}