quick-lint-js

Find bugs in JavaScript programs.

E0274: TypeScript import aliases are not allowed in JavaScript

TypeScript supports import alias using import. It is a syntax error to write such an alias in JavaScript code:

import m = require('mod');

To fix this error, use const instead of import:

const m = require('mod');

Introduced in quick-lint-js version 2.8.0.

Documentation for other errors