-
Notifications
You must be signed in to change notification settings - Fork 15
/
.jshintrc
28 lines (26 loc) · 1.84 KB
/
.jshintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
"bitwise" : true, // if bitwise operators should not be allowed
"browser" : false, // if the standard browser globals should be predefined
"debug" : false, // if debugger statements should be allowed
"devel" : false, // if logging should be allowed (console, alert, etc.)
"eqeqeq" : true, // if === should be required
"es5" : false, // if ES5 syntax should be allowed
"evil" : false, // if eval should be allowed
"forin" : false, // if for in statements must filter
"immed" : true, // if immediate invocations must be wrapped in parens
"laxbreak" : false, // if line breaks should not be checked
"newcap" : true, // if constructor names must be capitalized
"nomen" : false, // if names should be checked
"onevar" : true, // if only one var statement per function should be allowed
"passfail" : false, // if the scan should stop on first error
"plusplus" : true, // if increment/decrement should not be allowed
"regexp" : true, // if the . should not be allowed in regexp literals
"rhino" : false, // if the Rhino environment globals should be predefined
"undef" : true, // if variables should be declared before used
"strict" : false, // require the "use strict"; pragma
"sub" : false, // if all forms of subscript notation are tolerated
"white" : false, // if strict whitespace rules apply
"indent" : 4, // set the expected indentation level
// the names of predefined global variables: the following are defined by nodejs itself
"predef" : ["beforeEach", "describe", "it", "exports", "module", "require", "process", "__filename", "__dirname", "global", "console", "setInterval", "setTimeout", "clearInterval", "clearTimeout"]
}