jshint: indent doesn't work (2.5.0)

I’m trying the following config ~/.jshint

{
  "indent": 4
}

on the following code (foo.js)

var x = function () {
  return 0;
};

jshint 2.5.0 on node 0.10.24, linux. It doesn’t complain about the two spaces.

jshint --config ~/.jshint foo.js

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 25 (4 by maintainers)

Most upvoted comments

Let me get this straight.

You have a significant feature, that works well and that an enormous number of people use and rely on, and you remove it out of nowhere simply because you want your software to have less features?

And then, as a second kick to the balls, when the essentially deprecated indent option is used, you quietly accept it rather than showing an error?

So now:

  • You don’t actually have less options, despite your claim, since indent is still a valid option (that now does something useless)
  • Developers that were previously using indent and update JSHint, who believe their code is still protected from this common bug-inducing mistake, suddenly aren’t protected, with no indication whatsoever from JSHint to let them know?

…what the hell were you thinking!?