forked from ashish-chopra/angular-gauge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jshintrc
26 lines (26 loc) · 1.21 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
{
"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" : 15, // {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`.
"esversion" : 6,
"validthis" : true,
"predef" : [ // Custom globals.
"angular",
"require",
"console",
"define",
"module",
"__dirname",
"process"
]
}