Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-new-func

- Disallow new operators with the Function object

This error is raised to highlight the use of a bad practice. By passing a string to the Function constructor, you are requiring the engine to parse that string much in the way it has to when you call the eval function.

What ESLint should do when it catches the rule break

Show a warning

Rule examples

You can check them out here.