forked from eclipsesource/tabris-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.jshintrc
47 lines (38 loc) · 1.51 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
{
// Enforcing Options
"curly": true, // enforce curly braces around blocks in loops and conditionals
"eqeqeq": true, // prohibit the use of == and != in favor of === and !==
"freeze": true, // prohibit overwriting prototypes of native objects such as Array and Date
"immed": true, // prohibit the use of immediate function invocations without wrapping them in parentheses
"latedef": "nofunc", // prohibit the use of a variable before it was defined
"newcap": true, // enforce capitalized names of constructor functions
"noarg": true, // prohibit the use of arguments.caller and arguments.callee
"nonew": true, // prohibit the use of constructor functions for side-effects
"undef": true, // prohibit the use of explicitly undeclared variables
"unused": true, // prohibit the declaration of variables that are never used
// Relaxing Options
"shadow": true, // tolerate variable shadowing, i.e. re-define variables that have already be defined
"eqnull": true, // suppress warnings about == null comparisons
// Globals
"browser": true, // globals exposed by modern browsers e.g. `window`, `document`, etc.
"globals": {
"console": false,
"tabris": false,
"util": false,
"device": false,
"NativeBridgeSpy": false,
// modules
"module": false,
"exports": false,
"require": false,
"cordova": false,
// jasmine
"describe": false,
"it": false,
"expect": false,
"beforeEach": false,
"afterEach": false,
"spyOn": false,
"jasmine": false
}
}