quick-lint-js

Find bugs in JavaScript programs.

E0131: expected ',' between object literal entries

In an object literal, entries are separated with a ,. It is a syntax error to separate entries with ; instead:

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

To fix this error, replace ; with ,:

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

Introduced in quick-lint-js version 0.2.0.

Documentation for other errors