quick-lint-js

Find bugs in JavaScript programs.

E0233: TypeScript generics are not allowed in JavaScript code

It is a syntax error to write TypeScript generic parameters or arguments in JavaScript code:

class HashSet<Value> {
  // ...
}

To fix this error, rename your file to have a .ts or .tsx suffix.

Alternatively, use JSDoc to write the generic parameters:

/**
 * @template Value
 */
class HashSet {
  // ...
}

Documentation for other errors