Possible Errors

Best Practices

Strict Mode

Variables

Node.js and CommonJS

Stylistic Issues

ECMAScript 6

wrap-iife

- Require parentheses around immediate function invocations

Fixable

This rule requires all immediately-invoked function expressions to be wrapped in parentheses.

What ESLint should do when it catches the rule break

Show a warning

Options

outside

functionPrototypeMethods

Additionally enforces wrapping function expressions invoked using .call and .apply.

Rule examples

You can check them out here.