quick-lint-js

Find bugs in JavaScript programs.

E0142: missing property name after '.' operator

The . operator accesses an object's property. It is a syntax error to omit a property name after the . operator:

try {
  goNuts();
} catch {
  console.("couldn't handle deez nuts");
}

To fix this error, write the property name after the .:

try {
  goNuts();
} catch {
  console.error("couldn't handle deez nuts");
}

Introduced in quick-lint-js version 0.2.0.

Documentation for other errors