Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

func-name-matching

- Require function names to match the name of the variable or property to which they are assigned

This rule requires function names to match the name of the variable or property to which they are assigned. The rule will ignore property assignments where the property name is a literal that is not a valid identifier in the ECMAScript version specified in your configuration (default ES5).

What ESLint should do when it catches the rule break

Show a warning

Options

always

considerPropertyDescriptor

Checks also Object.create, Object.defineProperty, Object.defineProperties, and Reflect.defineProperty.

includeCommonJSModuleExports

Checks also module.exports and module["exports"].

Rule examples

You can check them out here.