Last active
February 23, 2016 21:16
-
-
Save nicholasblexrud/79a829e4b8a58a12bc6e to your computer and use it in GitHub Desktop.
sublime jslint settings
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
{ | |
// an array of options to pass to jslint. | |
"options" : [ | |
// examples using predef flag. | |
"--predef", "['angular', 'document', '\\$', '_', 'jQuery', 'FB', 'window', 'Bootstrapper']" | |
// tolerate missing 'use strict' pragma. | |
,"--sloppy" | |
// suggest an indent level of two spaces. | |
,"--indent", "4" | |
// assume node.js to predefine node globals. | |
,"--node" | |
// tolerate unfiltered for in. | |
//,"--forin" | |
// tolerate dangling _ in identifiers. | |
,"--nomen" | |
// tolerate many var statements per function. | |
,"--vars" | |
// tolerate ++ and --. | |
,"--plusplus" | |
// tolerate blocking -Sync methods | |
,"--stupid" | |
// tolerate comments starting with TODO | |
,"--todo" | |
] | |
// if true, run jslint on save. | |
,"run_on_save" : true | |
// a regex string to determine whether jslint | |
// should be run on a file. | |
// if a match is found (i.e. re.search(filename_filter, filename)), | |
// the file will be linted. | |
,"filename_filter": "(\\.js|\\.json|\\.gs)$" | |
// jslint command you want to run as an array of strings. | |
// E.g.: ["jslint"] or ["/usr/local/bin/jslint"] or ["node", "mylinter.js"] | |
// Default is | |
// * Linux: ["node", "~/.config/sublime-text-2/Packages/JSLint/linter.js"] | |
// * Mac: ["node", "~/Library/Application Support/Sublime Text 2/Packages/JSLint/linter.js"] | |
// * Windows: ["node", "%APPDATA%/Sublime Text 2/Packages/JSLint/linter.js"] | |
// ,"jslint" : ["jslint"] | |
// if your own personal choice of jslint has an output | |
// different from the standard which comes with this package, | |
// you may have to change line_regex and file_regex | |
// check http://docs.sublimetext.info/en/latest/reference/build_systems.html | |
// to find out how these regular expressions work. The defaults are: | |
// ,"line_regex" : ".*// Line ([0-9]*), Pos ([0-9]*)$" | |
// ,"file_regex" : "(^[^# ]+.*$)" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment