Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikermcneil/ecab44d2dcee1351024d94821d65cbe4 to your computer and use it in GitHub Desktop.
Save mikermcneil/ecab44d2dcee1351024d94821d65cbe4 to your computer and use it in GitHub Desktop.
notes-about-jshint-and-sublime-linter-and-sublime-text-2.md

Updating jshint in Sublime Text 2 (Sublime Linter)

I wanted my built-in syntax highlighting to support the latest stuff from jshint. Like nocomma.

But unfortunately, I'm using Sublime Text 2, because I'm a luddite and bad person and subhuman really. So I clawed my way up my macbook's legs and took a look around.

Finding where you're supposed to put it

In sublime text 2, after some searching, I was able to find Sublime Linter's copy of jshint here:

/Users/mikermcneil/Library/Application\ Support/Sublime\ Text\ 2/Packages/SublimeLinter/sublimelinter/modules/libs/jshint/jshint.js

Finding what you're supposed to put there

Then I copied the raw text from the latest 2.x version of jshint to my clipboard, which I found by looking at the commits.

Pasting it

Then I pasted it over the other file. Apparently you don't have to quit sublime even-- just hit CMD+S to save-- because then I was successfully able to use nocomma: true.

screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment