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/E0180.md: error: expected only E0180 errors in first code block but found E0349 /__w/quick-lint-js/quick-lint-js/docs/errors/E0180.md: error: expected no error in code block #2 but found errors
E0180: stray comma in function parameter
A function parameter can be a variable name, an array destructuring, or an object destructuring. It is a syntax error for a parameter name to be in parentheses with a comma:
let firsts = data.map([(x,)] => x);
To fix this error, remove the comma:
let firsts = data.map([(x)] => x);
Introduced in quick-lint-js version 1.0.0.