# E0211: missing parentheses around self-invoked function

Invoking an arrow function immediately without parentheses is a syntax error. For example:

    () => {
      console.log('hi');
    }()

To fix this error, add parentheses around the entire function definition, before the invocation:

    (() => {
      console.log('hi');
    })()

Introduced in quick-lint-js version 2.4.0.

Documentation for other errors