# Source: https://github.com/quick-lint/quick-lint-js/blob/master/docs/errors/E0211.md

# 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.