-
Notifications
You must be signed in to change notification settings - Fork 760
/
.jshintrc
24 lines (24 loc) · 1.17 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
{
"strict" : true, // true: Requires all functions run in ES5 Strict Mode
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
"unused" : true, // true: Require all defined variables be used
"noempty" : true, // Prohibit use of empty blocks
"trailing" : true, // Prohibit trailing whitespaces.
"white" : false, // Check against strict whitespace and indentation rules.
"indent" : 2, // {int} Number of spaces to use for indentation
"maxcomplexity" : 10, // {int} Max number for cyclomatic complexity
"maxdepth" : 2, // {int} Max number for nesting blocks
"newcap" : true, // true: Require capitalization of all constructor functions e.g. `new F()`
"quotmark" : "single", // Quotation mark consistency
"-W058" : true, // Missing '()' invoking a constructor
"browser" : true, // Standard browser globals e.g. `window`, `document`.
"predef" : [ // Custom globals.
"angular",
"G_vmlCanvasManager",
"require",
"console",
"Chart",
"define",
"module"
]
}