'How to enforce the declaration of parameters and return types in angular

I'm currently setuping some kind of big project in angular, that will be under development for the next year with a team of multiple individuals.

I would like to enforce that every method should absolutely defines the types of its parameters and the type of its return.

We are using Eslint with prettier. Is there a way to enforce this? Or at least mark it as a warning/error in the editor.

Ideally I would like to fix it automatically on format, but the minimum would be that the linting prevents it.

Is this something possible?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source