0

I use the JSLint plugin for ST (in addition to the Sublime​Linter-jshint plugin).

I disagree with the theory that the use of ++ or -- is evil, tricky etc. and use them quite freely. As such I don't appreciate the warning that I should use += 1 instead of ++ throughout my code.

I have tried adding the line /*jslint plusplus: true */ at the beginning of my code as per Unexpected '++' in jslint but this did not help.

How can I make a global setting for the JSLint ST plugin to tolerate the usage of ++ and --?

Community
  • 1
  • 1
Trevor
  • 525
  • 2
  • 6
  • 19
  • JSLint is pretty opinionated. If you're looking to configure rules, you might like [JSHint](http://jshint.com/) or [ESLint](http://eslint.org/) better. – Saad May 03 '16 at 18:55
  • Thank you for your comment, I shall give them a go. I had a quick look into them and they do appear more promising. – Trevor May 03 '16 at 21:10

1 Answers1

1

I searched through the JSLint repo on Github, and couldn't find any mention of a plusplus option in the current version of jslint.js. So, I did some digging, and found that the plusplus option was removed in this commit on May 1, 2015 (it was still present in the previous commit). Here is Crockford's announcement that he'll be removing that option, among others, in his next release.

Therefore, because this option was removed about a year ago, you just won't be able to use it with current versions of JSLint.

MattDMo
  • 100,794
  • 21
  • 241
  • 231
  • A bit of a disappointing answer, but that's not your fault and it looks correct. I might look into @saadq suggestions above. Thanks – Trevor May 03 '16 at 20:59