Why does JSHint throw a warning if I am using const?

后端 未结 17 3004
眼角桃花
眼角桃花 2020-12-12 08:18

This is the error I get when using const:



        
17条回答
  •  南笙
    南笙 (楼主)
    2020-12-12 09:06

    Create .jshintrc file in the root dir and add there the latest js version: "esversion": 9 and asi version: "asi": true (it will help you to avoid using semicolons)

    {
        "esversion": 9,
        "asi": true
    }
    

提交回复
热议问题