Created
May 3, 2016 16:04
-
-
Save hampelm/1a6a4544e9079e8e55c219ee895704ae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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