jslint可以通过运行'jslint --indent 4 test.js'检查缩进,但我不能在jshint中使用它.我按照以下步骤进行操作.
{..., "indent":4, "white":false, ...}
/jshint indent:4/ var condition, doSth; if (condition) doSth(); // expected to be invalid
javascript node.js jshint
javascript ×1
jshint ×1
node.js ×1