-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jshintrc
42 lines (42 loc) · 1.46 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
{
"node": true, // Enable globals available when code is running inside of the NodeJS runtime environment.
"mocha": true, // Enable globals available when code is running inside of the Mocha tests.
"jasmine": true, // Enable globals available when code is running inside of the Jasmine tests.
"browser": true, // Standard browser globals e.g. `window`, `document`.
"esnext": true, // Allow ES.next specific features such as `const` and `let`.
"bitwise": false, // Prohibit bitwise operators (&, |, ^, etc.).
"curly": false, // Require {} for every new block or scope.
"eqeqeq": true, // Require triple equals i.e. `===`.
"latedef": "nofunc", // Prohibit variable use before definition.
"noarg": true, // Prohibit use of `arguments.caller` and `arguments.callee`.
"undef": true, // Require all non-global variables be declared before they are used.
"unused": false, // Warn unused variables.
"strict": true, // Require `use strict` pragma in every file.
"globals": {
// Globals variables.
"$": true,
"L": true,
"angular": true,
"auth2": true,
"document": true,
"gapi": true,
"google": true,
"Highcharts": true,
"window": true,
"ActiveXObject": true,
"toGeoJSON": true,
"cambodia_polygon": true,
"cam_adm2": true,
"protected_area": true,
"cam_adm1": true,
"jsPDF": true,
"domtoimage": true
},
"predef": [ // Extra globals.
"inject",
"by",
"browser",
"element"
],
"devel": true // Allow development statements e.g. `console.log();`.
}