Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-invalid-this

- Disallow this keywords outside of classes or class-like objects

This rule aims to flag usage of this keywords outside of classes or class-like objects.

What ESLint should do when it catches the rule break

Show a warning

Rule examples

You can check them out here.