callback-return

- Require return statements after callbacks

This rule is aimed at ensuring that callbacks used outside of the main function block are always part-of or immediately preceding a return statement. This rule decides what is a callback based on the name of the function being called.

What ESLint should do when it catches the rule break

Show a warning

Rule examples

You can check them out here.