jslint can check indent by run 'jslint --indent 4 test.js', but I don't get it work in jshint. I do it as the follow steps.
- install jshint through "npm install -g jshint"
- edit ~/.jshintrc, my jshintrc looks like
{..., "indent":4, "white":false, ...}
- edit js file test.js
/jshint indent:4/ var condition, doSth; if (condition) doSth(); // expected to be invalid
- run jshint test.js, but the indent checking is not working. The 2 spaces started line can pass the check.