quick-lint-js

Find bugs in JavaScript programs.

quick-lint-js found inconsistencies in the error documentation. If you're hacking on the website, rebuild quick-lint-js for the website by following wasm/README.md and website/README.md.

/__w/quick-lint-js/quick-lint-js/docs/errors/E0193.md: error: expected error in first code block but found no errors

E0193: misspelled React attribute; write 'className' instead

React has a different name for some attributes than HTML. It is a mistake to write the HTML attribute instead of the React attribute:

function Title({page}) {
  return <h1 class="title">
    <a href={page.url} class="page-link">
      {page.name}
    </a>
  </h1>;
}

To fix this error, write the name of the attribute understood by React:

function Title({page}) {
  return <h1 className="title">
    <a href={page.url} className="page-link">
      {page.name}
    </a>
  </h1>;
}

Introduced in quick-lint-js version 2.0.0.

Documentation for other errors