Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

line-comment-position

- Enforce position of line comments

This rule enforces consistent position of line comments. Block comments are not affected by this rule. By default, this rule ignores comments starting with the following words: eslint, jshint, jslint, istanbul, global, exported, jscs, falls through.

What ESLint should do when it catches the rule break

Show a warning

Options

position

above

Specifies a regular expression to ignore comments that match a pattern.

applyDefaultIgnorePatterns

Applies default ignore patterns even if ignorePattern is provided.

Rule examples

You can check them out here.