Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hampelm/1a6a4544e9079e8e55c219ee895704ae to your computer and use it in GitHub Desktop.
Save hampelm/1a6a4544e9079e8e55c219ee895704ae to your computer and use it in GitHub Desktop.
{
"cmd": [
"/usr/local/bin/node",
"${packages}/JSLint/linter.js",
// Examples using predef flag
"--predef", "['Ember', 'angular', 'document', '\\$', '_', 'JQuery', 'FB', 'window']",
// tolerate missing 'use strict' pragma
"--sloppy",
// suggest an indent level of two spaces
"--indent", "2",
// assume node.js to predefine node globals
"--node",
// Whitespace
"--white", "true",
// tolerate unfiltered for in
//"--forin",
// tolerate dangling _ in identifiers
"--nomen",
// tolerate many var statements per function
"--vars",
// tolerate ++ and --
"--plusplus",
// tolerate Douglas Crockford
"--stupid",
"--todo",
"$file"
],
"file_regex": "^\\/.*\\/([^\\/]*)$",
"line_regex": ".*\/\/ Line ([0-9]*), Pos ([0-9]*)$",
"selector": "source.js, source.json, source.sass, source.less, source.html"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment