quick-lint-js

Find bugs in JavaScript programs.

E0199: unclosed class; expected '}' by end of file

Every { introducing a class block must have a matching } ending a class block. It is a syntax error to omit the }:

class Banana {
  peel() {
    throw new Error("Bananas can't peel themselves!");
  }

To fix this error, write a matching }:

class Banana {
  peel() {
    throw new Error("Bananas can't peel themselves!");
  }
}

Introduced in quick-lint-js version 2.3.0.

Documentation for other errors