Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

accessor-pairs

- Enforce getter and setter pairs in objects

This rule enforces a style where it requires to have a getter for every property which has a setter defined.

What ESLint should do when it catches the rule break

Show a warning

Options

getWithoutSet

Warns for getters without setters.

setWithoutGet

Warns for setters without getters.

Rule examples

You can check them out here.