-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
75 lines (74 loc) · 1.75 KB
/
.eslintrc.js
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
64
65
66
67
68
69
70
71
72
73
74
75
module.exports = {
// Use false for immutable vars and true for mutable.
"globals": {
"_": false,
"ADMIN_EMAIL": true,
"BrowserPolicy": false,
"Color": false,
"colormaps": true,
"ctx": true,
"DEV": true,
"exec": true,
"google": false,
"googlemap": true,
"GoogleMaps": false,
"HUB_URL": true,
"layers": true,
"MapLabel": false,
"PERFORM": false,
"polygons": true,
"process": true,
"reverseCategorySortToMatchLayoutPyAndLegend": true,
"Roles": false, // this shouldn't need to be here
"sendMail": false, // where is this defined?
"URL_BASE": true,
"VERSION": true,
"VIEW_DIR": true,
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jquery": true,
"meteor": true,
"mongo": true,
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:node/recommended",
],
"parser": "babel-eslint",
"parserOptions": {
"allowImportExportEverywhere": true,
"ecmaVersion": 2018,
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"node",
"react",
],
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"no-console": 0,
"node/exports-style": [
"error",
"exports",
],
"node/no-unsupported-features": ["error", {
"version": 8,
"ignores": ["modules"]
}]
}
};