/
.jshintrc
53 lines (49 loc) · 974 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"unused": true,
"freeze": true,
"esversion": 3,
"futurehostile": true,
"latedef": false,
"nonew": true,
"undef": true,
"browser": true,
"globals": {
"JSON": true,
"RAVELINJS_VERSION": true
},
"overrides": {
// Rollup bundles these files.
"**/lib/**/*.js": {
// export/import is handled automatically.
"-W119": true
},
// Unit test files: run in the browser.
"**/*.test.js": {
"mocha": true,
"browser": true,
"jquery": true,
"globals": {
"xhook": true,
"expect": true,
"Ravelin": true
}
},
// Spec files are executed in node + mocha.
"**/*.{spec,conf,config}.js": {
"esversion": 9,
"node": true,
"browser": false,
"mocha": true,
"globals": {
"expect": true,
"browser": true,
"$": true
}
},
// Node.
"**/*.[mc]js": {
"esversion": 9,
"node": true
}
}
}