quick-lint-js

Find bugs in JavaScript programs.

E0381: Typescript does not allow keywords to contain escape sequence

The following code is legal in JavaScript but is illegal in TypeScript

class C {
  \u{63}onstructor() {}  // equivalent to: constructor() {}
}

To fix this error, remove the escape sequence in the keyword.

class C {
  constructor() {}  // equivalent to: constructor() {}
}

Documentation for other errors