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

# E0009: cannot export variable named 'let'

An exported function cannot be named `let`:

```javascript
export function let() {
  console.log("access permitted");
}
```

To fix this error, name the function something other than `let`, or declare the
function separately with a different name and use `export`-`as`:

```javascript
export function allow() {
  console.log("access permitted");
}

function allowAccess() {
  console.log("access permitted");
}
export { allowAccess as let };
```

Introduced in quick-lint-js version 0.2.0.