forked from mailvelope/mailvelope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.jshintrc
47 lines (39 loc) · 1.85 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
{
// JSHint Configuration File
// See http://jshint.com/docs/ for more details
"maxerr" : 5, // {int} Maximum error before stopping
// Enforcing
"bitwise" : false, // true: Prohibit bitwise operators (&, |, ^, etc.)
"forin" : false, // true: Require filtering for..in loops with obj.hasOwnProperty()
"immed" : true, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`,
"undef" : false,
"unused" : false,
// Relaxing
"debug" : true, // true: Allow debugger statements e.g. browser breakpoints.
"browser" : true, // true: defines globals exposed by modern browsers
"devel" : true, // true: define globals for some development functions (alert, console)
"shadow" : true, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
"validthis" : true, // true: Tolerate using this in a non-constructor function
"boss" : true, // true: Tolerate assignments where comparisons would be expected
"evil" : true, // true: Tolerate use of `eval` and `new Function()`
"expr" : true, // true: allow `arr && arr.forEach(...)`
"multistr" : true,
// Environments
"trailing" : true, // true: Prohibit trailing whitespaces
"node" : true, // Node.js
"nonstandard" : true, // Widely adopted globals (escape, unescape, etc)
"esnext" : true,
// Legacy
"white" : false, // true: Check against strict whitespace and indentation rules
"indent": 2,
// Custom Globals
"globals": {
"$": false,
"_": false,
"Modernizr": false,
"define": false,
"require": false,
"requirejs": false,
"Backbone": false
}
}