Does JSHint support async/await?

前端 未结 4 1243
别跟我提以往
别跟我提以往 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:34

    Note: Using the forked JSHINT-ESNEXT package (NPM, and github) as suggested in the "accepted answer" requires the inclusion of the "experimental" option to be set.

    /* experimental: [asyncawait] */

    or

    /* experimental: [asyncawait, asyncreqawait] */

    See the source code here for details.

提交回复
热议问题