quick-lint-js

Find bugs in JavaScript programs.

E0165: TypeScript style const field

const fields are only allowed in TypeScript, not JavaScript

class C {
  const f = null;
} 

To fix this error, remove the const declarator from the field

class C {
  f = null;
} 

Documentation for other errors