Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

guard-for-in

- Require for-in loops to include an if statement

This rule is aimed at preventing unexpected behavior that could arise from using a for in loop without filtering the results in the loop. As such, it will warn when for in loops do not filter their results with an if statement.

What ESLint should do when it catches the rule break

Show a warning

Rule examples

You can check them out here.