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

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

This is the error I get when using const:



        
17条回答
  •  情深已故
    2020-12-12 08:49

    In your package.json you can tell Jshint to use es6 like this

    "jshintConfig":{
        "esversion": 6 
    }
    

提交回复
热议问题