explicit-function-return-type
Configuration
rslint.config.ts
Rule Details
Require explicit return types on functions and class methods.
Functions in TypeScript often don't need to be given an explicit return type annotation. Leaving off the return type is less code to read or write and allows the compiler to infer it from the contents of the function. However, explicit return types do make it visually more clear what type is returned by a function and can speed up TypeScript type checking performance in large codebases.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Original Documentation
https://typescript-eslint.io/rules/explicit-function-return-type