What's the value of always returning a value ("undefined") for functions don't need to explicitly return anything?
Why is this a rule and what bugs does it catch?
You can read about ESLint's "consistent return" rule here (answers the "what", not the "why").
You can read a speculative analysis of why javascript functions implicitly returns undefined here on stack overflow.