no-mixed-requires

- Disallow require calls to be mixed with regular variable declarations

When this rule is enabled, each var statement must satisfy the following conditions:.

What ESLint should do when it catches the rule break

Show a warning

Options

grouping

allowCall

Rule examples

You can check them out here.