-
Notifications
You must be signed in to change notification settings - Fork 39
/
.jshintrc
122 lines (77 loc) · 3.16 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
/*
* Enforcing options
*/
"bitwise": true, // disallow bitwise operators
"camelcase": false, // allows to force all variables to camelCase or UPPER_CASE with underscore
"curly": false, // require curly braces for single-statement blocks
"eqeqeq": true, // Require === and !==
"es3":false, // does not require code to adhere to ECMAScript3 spec.
"forin": true, // for..in loops require hasOwnProperty()
"freeze": false, // allows overwriting prototypes of native objects (Array, Date, etc.)
"immed": true, // Immediate function invocations must be wrapped in parentheses
"indent":false, // no specific tab width for code
"latedef": true, // Vars must be declared before first use
"newcap": true, // capitalize constructor functions
"noarg": true, // disallow arguments.caller and arguments.callee
"noempty": false, // no warning when there is an empty block in code
"nonbsp": false, // no warning about "non-breaking whitespace" chars.
"nonew": true, // disallow use of new solely for side effects
"plusplus":false, // allow the use of ++ and -- as increment and decrement operators
//"quotmark":true, allow inconsistency of quote marks in code. true=no enforcement, single=only singel quotes allowed, double=only double quotes allowed
"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": true, // 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": true, // 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
*/
"-W003": false, // ignore used before defined warnings
"-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,
/* Don't need this anymore
// 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,
"should_throw": false,
"start": false,
"stop": false,
"test": false,
// jQuery globals
"$": false
}
}