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

# E0145: cannot import variable named keyword

An `import` statement can import a list of classes, functions, and variables. It
is a syntax error to import something with the same name as a keyword:

```javascript
// Exported using: export {cssClass as class};
import {class} from "./css.mjs";
```

To fix this error, use `as` to name the imported variable different from the
exported name:

```javascript
// Exported using: export {cssClass as class};
import {class as makeClass} from "./css.mjs";
```

Alternatively, change the name of the export, and ensure other importers use the
new name:

```javascript
// Exported using: export {cssClass};
import {cssClass} from "./css.mjs";
```

Introduced in quick-lint-js version 0.2.0.