-
Notifications
You must be signed in to change notification settings - Fork 4
/
.jshintrc
35 lines (25 loc) · 915 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
31
32
33
34
35
{
// Set syntax to ES5 (e.g., complain about use of ES6 features)
// ES8 features include async/await functionality, which this project makes use of to consume the metadata api
"esversion": 8,
// Put curly braces around conditional blocks & loops
"curly": true,
// Use deep-equals for comparison
"eqeqeq": true,
// Complain about overwriting methods on native objects, i.e., String
"freeze": true,
// Set max depth of nested blocks
"maxdepth": 3,
// Set max number of statements allowed per function
"maxstatements": 25,
// Allow comparisons to null
"eqnull": true,
// Allow variables to be set in conditional blocks and used later
"funcscope": true,
// Complain about use of global variables from jquery
"jquery": true,
// Complain about use of global variables in browsers
"browser": true,
// Complain about errant console & alert statements
"devel": true
}