jshint 安装使用
首先要安装nodjs, 参考另一篇文章: Ubuntu 编译安装node.js
然后运行
jshint . >> jshint_result.txt
相比Jslint那么严格的规则,其实很多我都觉得是个人偏好问题,jshint更加合理。