I found an eslint rule that lets me ensure that the return type is always set. I need a way to force explicit return type on all functions expect those that don't have a return. So, I won't need to set void as return type if there's no return statement in the function. I'm working on a big code base and explicitly setting void as return type would force me to edit a lot of lines in the code base.
I don't want eslint to show a warning on the first function, but I want it show a warning on the second function.
function hello() {
console.log('hello world')
}
function myNumber() {
return 1
}
Is this possible? If so, which rule should I use?