Skip to content

Instantly share code, notes, and snippets.

@hannesgassert
Created July 26, 2011 19:13
Show Gist options
  • Save hannesgassert/1107670 to your computer and use it in GitHub Desktop.
Save hannesgassert/1107670 to your computer and use it in GitHub Desktop.
Sublime Text 2 Build System Description: jslint for node (working on Lion)
// 1) Install node and npm
// 2) npm -g install jslint (the jslint one)
// Install this in Sublime Text 2
// Now with clickable errors and all
{
"cmd": ["/usr/local/bin/node", "/usr/local/bin/jslint", "--node", "$file"],
"file_regex": "^(/.+\\.js)",
"line_regex": "([0-9]+),[0-9]+:",
"selector": "source.js",
"env": {"node" : "/usr/local/bin/node"} // this seems to be ignored on Lion?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment