Javascript Client Linting Errors

Attempting to use the new Javascript client and am having some linting errors with ESLint.

Using the prime example from the docs here:
ESLint is giving me an error:
ERROR: Parsing error: Unexpected token client
specifically on the line:
const result = await{

All the references I found online suggested I had the wrong ecmaVersion, but I have set to 2017, so shouldn't be the problem.

Other suggestions are the parser is wrong (tried as well). Does the example work for others?

I was assuming that the client was taking care of the async function, but is that not the case and it's not being wrapped in the async properly?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.