search

Home  >  Q&A  >  body text

javascript - eslint error async


async function is normal
But eslint will report an error
eslint version is 3.19.0
How to configure it, you can ignore the error

淡淡烟草味淡淡烟草味2804 days ago744

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-19 10:28:38

    npm install babel-eslint --save-dev 
    

    at eslint的配置文件中增加"parser": "babel-eslint"

    reply
    0
  • Cancelreply