Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

dot-notation

- Enforce dot notation whenever possible

Fixable

This rule is aimed at maintaining code consistency and improving code readability by encouraging use of the dot notation style whenever possible. As such, it will warn when it encounters an unnecessary use of square-bracket notation.

What ESLint should do when it catches the rule break

Show a warning

Options

allowKeywords

Specifies a regular expression to allow bracket notation for property names that match a pattern.

Rule examples

You can check them out here.