quick-lint-js

Find bugs in JavaScript programs.

E0161: unclosed object literal; expected '}'

An object literal requires a list of properties surrounded by { and }. It is a syntax error to start an object literal with { but omit the final }:

let response = await axios.get(url.toString(), {
  validateStatus(_status) {
    return true;
  },
  responseType: "stream"
);

To fix this error, write } at the end of the object literal:

let response = await axios.get(url.toString(), {
  validateStatus(_status) {
    return true;
  },
  responseType: "stream"
});

Documentation for other errors