Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

id-match

- Require identifiers to match a specified regular expression

This rule requires identifiers in assignments and function definitions to match a specified regular expression.

What ESLint should do when it catches the rule break

Show a warning

Options

properties

Requires object properties to match the specified regular expression.

onlyDeclarations

Requires only var, function, and class declarations to match the specified regular expression.

ignoreDestructuring

Ignores destructured identifiers.

Specifies a regular expression to check identifiers that match a pattern.

Rule examples

You can check them out here.