quick-lint-js icon indicating copy to clipboard operation
quick-lint-js copied to clipboard

12$: Improve diagnostic: f = () {}

Open strager opened this issue 3 years ago • 3 comments

    client.on('open', () {
      ws.send('something');
    });

Expected: "missing '=>'"

strager avatar Oct 07 '21 05:10 strager

Similar:

    client.on('error', error {
      reportError(error);
    });

Expected: "missing '=>' or ','"

strager avatar Oct 13 '21 07:10 strager

The looks_like_arrow_function_body variable in parse-expression.cpp looks like a good place to start poking around.

strager avatar Oct 01 '22 03:10 strager

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.

HicaroD avatar Sep 21 '23 01:09 HicaroD