quick-lint-js

Find bugs in JavaScript programs.

E0325: cannot delete variables in TypeScript

In JavaScript, it is possible to use delete on a variable. In TypeScript, deleting a variable is an error:

let x = 3;
delete x;
console.log(x);

To fix this error, remove the delete statement:

let x = 3;
console.log(x);

See also: E0086

Introduced in quick-lint-js version 2.10.0.

Documentation for other errors