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

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

This is the error I get when using const:



        
17条回答
  •  执念已碎
    2020-12-12 09:05

    If you are using Grunt configuration, You need to do the following steps

    Warning message in Jshint:

    Solution:

    1. Set the jshint options and map the .jshintrc.js file

    1. Create the .jshintrc.js file in that file add the following code
    {  
      "esversion": 6  
    } 
    

    After configured this, Run again It will skip the warning,

提交回复
热议问题