-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.jshintrc
30 lines (26 loc) · 975 Bytes
/
.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
{
"node": true, //nodejs,
"browser": false, //browser support
"esnext": true,
"strict": true, //use strict is a must (alternate implied)
"undef": true, //error if undefined vars
"unused": true, //error if unused vars
"curly": true, //expect curly braces on every block
"eqeqeq": true, //=== !== instead of == !=
"latedef": true, //variable used before defined
"nonew": true, //forec to assign constructor output to a variable
"shadow": false, //duplicated declaration of variables
//deprecated because of stylecheck
//but to use before switching to eslint
"quotmark": "single",
"newcap": true, //constructors has to start with an upper case char
"maxlen": 130, //max 80 chars in line
"camelcase": true, //camelcase is a must,
//other
"globals": {
"test1234": true,
"Promise": true
},
"maxcomplexity": 10, //cyclomatic complexity
"maxdepth": 3 //max depth of blocks
}