quick-lint-js
quick-lint-js copied to clipboard
12$: Improve diagnostic: f = () {}
client.on('open', () {
ws.send('something');
});
Expected: "missing '=>'"
Similar:
client.on('error', error {
reportError(error);
});
Expected: "missing '=>' or ','"
The looks_like_arrow_function_body
variable in parse-expression.cpp
looks like a good place to start poking around.
I claim this for-hire task. I expect payment after I complete this task. I will email the quick-lint-js team if I am assigned this task.