-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
113 lines (110 loc) · 2.98 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
module.exports = {
"env": {
"es6": true,
"node": true,
"browser": true
},
"extends": "eslint:recommended",
"rules": {
"indent": [
"warn",
2
],
"linebreak-style": [
"warn",
"unix"
],
"quotes": [
"warn",
"single"
],
"semi": [
"warn",
"always"
]
},
"globals": {
// Libs
"$": false,
"google": false,
"Cookies": false,
"Handlebars": false,
"UpUp": false,
"swal": false,
"twttr": true,
"toastr": true,
"ga": true, //overriden on localhost
// Constants
"SIMULATED_DELAY_MS": false,
"MARKER_W": false,
"MARKER_H": false,
"N_MOCK_PICS": false,
"MIN_TITLE_CHARACTERS": false,
"MARKER_ICON_GREEN": false,
"MARKER_ICON_YELLOW": false,
"MARKER_ICON_RED": false,
"MARKER_ICON_GRAY": false,
"MARKER_ICON_GREEN_MINI": false,
"MARKER_ICON_YELLOW_MINI": false,
"MARKER_ICON_RED_MINI": false,
"MARKER_ICON_GRAY_MINI": false,
"STRUCTURE_TYPES": false,
"GMAPS_DIRECTIONS_URL": false,
"PHOTO_UPLOAD_MAX_W": false,
"PHOTO_UPLOAD_MAX_H": false,
"STRUCTURE_CODE_TO_NAME": false,
"GOOGLEMAPS_KEY": false,
"MARKER_W_MINI": false,
"MARKER_H_MINI": false,
// Global util functions
"toggleSpinner": true,
"showSpinner": true,
"hideSpinner": true,
"defaultFailCallback": true,
"getBrowserName": true,
"removeAccents": true,
"slugify": true,
"autoGrowTextArea": true,
"copyToClipboard": true,
// Global variables
"BDB": true,
"SideNav": true,
"Database": true,
"map": true,
"geocoder": true,
"places": true,
"tags": true,
"_gmarkers": true,
"areMarkersHidden": true,
"addLocationMode": true,
"openedMarker": true,
"newMarkerTemp": true,
"currentPendingRating": true,
"_uploadingPhotoBlob": true,
"templates": true,
"loggedUser": true,
"_searchResultMarker": true,
"_abortedDetailsRequest": true,
"_geolocationInitialized": true,
"_geolocationMarker": true,
"_positionWatcher": true,
"_geolocationRadius": true,
"_sidenav": true,
"_updatingReview": true,
"_mapZoomLevel": true,
"_isLocalhost": true,
"_isFacebookBrowser": true,
"_isMobile": true,
"_gmapsCustomStyleStaticApi": true,
"_activeFilters": true,
"_infoWindow": true,
"_isTouchDevice": true,
"_isFacebookBrowser": true,
"_activeFilters": true,
"_infoWindow": true,
"_isOffline": true,
"_currentView": true,
"_isDeeplink": true,
"_onDataReadyCallback": true,
}
};