Sublime下使用JShint Gutter插件检测JS 结果被红色警告亮瞎 求问警告有纠正提示么

题主第一次使用jshint,吓一跳,只看到一屏幕的警告,没有纠正提示啊,求相关提示,若能说说大家常用的.jshintrc配置就更好了 谢谢

图片描述

阅读 5.7k
2 个回答

右键选择Lint Code 它会具体提示那一行有什么错误

新手上路,请多包涵

clipboard.png

将strict选项设为false

"global" - there must be a "use strict"; directive at global level
"implied" - lint the code as if there is the "use strict"; directive
false - disable warnings about strict mode
true - there must be a "use strict"; directive at function level;

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题