I just turn on TypeScript ESLint to our company project.
I wish to get warns or errors when a function DOES returns a value but inffer void when no return type is provided.
for instance:
function sum(a: number, b: number) { // SHOULD ERROR
return a+b;
}
should warn about there is no return type (it should be number), and:
function doSomething(value:number) { // SHOULD NOT WARN
doesNotReturns();
}
Its correct, because there is no returning value.
How can i configure estlinrc to achieve this behavior?