Does JSHint support async/await?

前端 未结 4 1244
别跟我提以往
别跟我提以往 2020-12-09 00:49

I\'m using JSHint for the JavaScript project (with the Visual Studio Code). And in this project I use async / await, which JSHint highlights as errors.

I tried to se

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-09 01:22

    The OP asked it there were any workarounds. It's a kludge, but I've replaced all my 'async' or 'await' with 'async /**/' and 'await /**/'. Then a quick script to swap them into '/*async*/' and '/*await*/' allows me to check with jshint.

    It's not pretty, but it feeds the bulldog.

提交回复
热议问题