quick-lint-js

Find bugs in JavaScript programs.

E0055: unmatched indexing bracket

It is an error to write the indexing operator [ without its matching ]:

for (let i = 0; i < friends.length; ++i) {
  let friend = friends[i;
  console.log[(`Hello, ${friend}!`);
}

To fix this error, write the closing ], or remove the extraneous [:

for (let i = 0; i < friends.length; ++i) {
  let friend = friends[i];
  console.log(`Hello, ${friend}!`);
}

Introduced in quick-lint-js version 0.2.0.

Documentation for other errors