no-empty-function
Configuration
rslint.config.ts
Rule Details
Disallows empty functions. Empty functions can reduce readability because readers need to guess whether the empty body is intentional. This rule extends the base ESLint no-empty-function rule with TypeScript-specific support, including constructors with parameter properties, decorated functions, override methods, and various function types like async functions and generators.
Examples of incorrect code for this rule:
Examples of correct code for this rule: