Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

indent

- Enforce consistent indentation

Fixable

This rule enforces a consistent indentation style. The default style is 4 spaces.

What ESLint should do when it catches the rule break

Show a warning

Options

flatTernaryExpressions

Requires no indentation for ternary expressions which are nested in other ternary expressions.

ignoreComments

Ignores comments.

Rule examples

You can check them out here.