I am using vscode with the ESLint extension.
I have node 16 installed and my eslint config is as follows...
{
    "env": {
        "node": true,
        "commonjs": true,
        "es2021": true
    },
    "extends": "eslint:recommended",
    "overrides": [
    ],
    "parserOptions": {
        "ecmaVersion": "latest"
    },
    "rules": {
        "no-unused-vars": "off"
    }
}
I have the following javascript code...
async function func1 (val) {
  console.log(val);
}
await func1("blah");
The last line of code is giving the error...
Parsing error: Unexpected token func1
Why is this error occuring?
 
    