forked from concord-consortium/codap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jshintrc
102 lines (65 loc) · 2.41 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
/*
* Enforcing options
*/
"bitwise": true, // disallow bitwise operators
"curly": false, // require curly braces for single-statement blocks
"eqeqeq": true, // Require === and !==
"forin": true, // for..in loops require hasOwnProperty()
"immed": true, // Immediate function invocations must be wrapped in parentheses
"latedef": true, // Vars must be declared before first use
"newcap": true, // capitalize constructor functions
"noarg": true, // disallow arguments.caller and arguments.callee
"nonew": true, // disallow use of new solely for side effects
"undef": true, // report undefined variables
"unused": "vars", // report unused local variables but not unused arguments
/*
* Relaxing options
*/
"boss": false, // allow assignments where comparisons expected
"debug": false, // allow debugger statements
"eqnull": true, // allow "== null" comparisons
"evil": false, // allow eval
"expr": false, // allow use of expressions where normally you would expect to see assignments or function calls
"funcscope": false, // allow vars declared inside controls structures to be used outside
"laxbreak": true, // allow "possibly unsafe" line breaks
"laxcomma": true, // allow comma-first coding style
"loopfunc": false, // allow functions defined in loops
"multistr": false, // suppress warnings about multi-line strings
"smarttabs": true, // allow mixed spaces and tabs for alignment
/*
* Ignore warnings without options
*/
"-W099": false, // ignore warnings about mixes spaces and tabs
/*
* Environment options
*/
"browser": true, // browser globals (document, navigator, FileReader)
"devel": true, // development globals (console, alert)
"jquery": true, // jQuery globals
"globals": {
// DG globals
"DG": false,
// Protovis globals
"pv": false,
// Raphael globals
"Raphael": false,
// SproutCore globals
"SC": false,
"sc_require": false,
"sc_super": false,
"static_url": false,
"NO": false,
"YES": false,
// SproutCore unit test globals
"equals": false,
"module": false,
"ok": false,
"same": false,
"start": false,
"stop": false,
"test": false,
// jQuery globals
"$": false
}
}