eslint Parsing error: Unexpected token function with async

后端 未结 4 2015
长情又很酷
长情又很酷 2021-02-04 00:09

I am getting the following error in async usage on ESLINT.

eslint Parsing error: Unexpected token function with async

Here is my

4条回答
  •  滥情空心
    2021-02-04 00:32

    I was getting this error also, I added the following to my eslintrc:

    {
      "env": {
        "node": true,
        "es6": true
      },
    
      "parserOptions": {
        "ecmaVersion": 8
      }
    }
    

提交回复
热议问题