no-restricted-modules

- Disallow specified modules when loaded by require

This rule allows you to specify modules that you don’t want to use in your application.

What ESLint should do when it catches the rule break

Show a warning

Rule examples

You can check them out here.