Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

no-restricted-properties

- Disallow certain properties on certain objects

This rule looks for accessing a given property key on a given object name, either when reading the property’s value or invoking it as a function. You may specify an optional message to indicate an alternative API or a reason for the restriction.

What ESLint should do when it catches the rule break

Show a warning

Rule examples

You can check them out here.