-
Notifications
You must be signed in to change notification settings - Fork 0
/
jshintrc
52 lines (46 loc) · 1.98 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
{
// http://www.jshint.com/docs/options/ for more documentation
"globals": {
"Territory" : false,
"Tile" : false,
"Game" : false,
"SvgMap" : false,
"Snap" : false,
"game" : true,
"mina" : false,
"utils" : false,
"ObjectId" : false,
"SelectTerritoryTools" : false,
"ExchangeTerritoryTools" : false,
"AssignTerritoryMill" : false,
"AssignBackhaul" : false,
"EllipseButton" : false,
"HexagonButton" : false,
"BackhaulPath" : false,
"google" : false,
"prologis" : false
},
"bitwise" : false, // allow usage of & ^ | (bitwise operators)
"curly" : true, // enforce usage of {} for statements like if, for
"eqeqeq" : true, // enforce usage of === and !== instead of == and != which are not type-aware
"es3" : false, // Do not support crap
"forin" : true, // safe use of for in
"freeze" : true, // disallow overwriting prototypes of nativse like Date, Array
"immed" : true, // Force usage of () to call a function
"latedef" : true, // Disallow usage of a variable before its definition
"newcap" : true, // capitalize name of constructors
"noarg" : true, // Disallow arguments.caller and arguments.callee (deprecated)
"noempty" : true, // no empty block
"nonbsp" : true, // Disallow "non breaking whitespace" : some mac crap
"nonew" : true, // Disallow calling a constructor for side effect
"plusplus" : false, // IMO ++ and -- are improving the code readability
"quotmark" : false, // no need for "" and '' usage consistency
"undef" : true, // Warn about undefined variables
"unused" : true, // warn about defined but not used variables
"strict" : true, // always force "use strict" which makes javascript much cleaner
"trailing" : true, // warn about trailing whitespaces
"gcl" : true, // want to be compatible with Google Closure Compiler
"browser" : true, // browser globals like document
"devel" : true, // console, alert globals
"jquery" : true // jquery globals
}