Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

semi-spacing

- Enforce consistent spacing before and after semicolons

Fixable

This rule aims to enforce spacing around a semicolon. This rule prevents the use of spaces before a semicolon in expressions.

What ESLint should do when it catches the rule break

Show a warning

Options

before

Enforce to have a space before semicolons.

after

Enforce to have a space after semicolons.

Rule examples

You can check them out here.