eslint Parsing error: Unexpected token function with async

后端 未结 4 2072
长情又很酷
长情又很酷 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:45

    If you are new in the project I recommend just to go back with promises :)

    function openTabs(array) {
        return new Promise((resolve, reject) => {
            //... your code
        });
    }
    

提交回复
热议问题