-
Notifications
You must be signed in to change notification settings - Fork 1
/
.jshintrc
63 lines (60 loc) · 1.72 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
52
53
54
55
56
57
58
59
60
61
62
63
{
// Enforcing options
// bitwise is forbidden
"bitwise": true,
// Use camel case variables
"camelcase": true,
// must put oneliners in curly braces
"curly": true,
// must use ===
"eqeqeq": true,
// must use hasOwnProperty when for in
"forin": true,
// may not override standard objects
"freeze": true,
// must (function wrap(){})() immediately called functions
"immed": true,
// late defs are forbidden. you must define before use
"latedef": true,
// maximal cyclomatic complexity
"maxcomplexity": 10,
// do not nest more than 5 levels deep
"maxdepth": 5,
// Maximal line length
"maxlen": 120,
// maximal number of function parameters
"maxparams": 10,
// Maximal number of statements in a method.
"maxstatements": 20,
// CAP constructors
"newcap": true,
// arguments.caller is evil
"noarg": true,
// empty blocks are forbidden
"noempty": true,
// Disallow "non-breaking whitespace" characters
"nonbsp": true,
// forbids new X(); without assignment
"nonew": true,
// disallows double quotes
"quotmark": true,
// must use 'use strict'
"strict": true,
// forbids use of trailing whitespace
"trailing": true,
// forbids use of undefined variables
"undef": true,
// forbids unused variables
"unused": true,
// just a helper variable
"indent": 2,
// Relaxing options
"globals": {
"define": true,
"$": true,
"angular": true,
"PubSub": true,
"module": true,
"require": true
}
}