1、
错误提示:Bad escaping of EOL. Use option multistr if needed.
解决方案:在代码前加入注释:/*jshint multistr: true */
参考:http://stackoverflow.com/questions/14054021
2、
错误提示:’const ‘ is available in ES6 (use ‘esversion: 6’) or MozillaJS extensions (use moz).
解决方案:/*jshint esversion:6 */
附:需要放在可执行代码前边,否则会报下边的错误;
3、
错误提示:the ‘esversion’ option cannot be set after any executable code