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

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

This is the error I get when using const:



        
17条回答
  •  青春惊慌失措
    2020-12-12 08:53

    If you are using Webstorm and if you don't have your own config file, then just enable EcmaScript.next in Relaxing options in in

    Settings | Languages & Frameworks | JavaScript | Code Quality Tools | JSHint

    See this question How-do-I-resolve-these-JSHint-ES6-errors

提交回复
热议问题