-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy path.eslintrc.js
102 lines (97 loc) · 2.12 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
module.exports = {
env: {
browser: true,
},
extends: ["eslint:recommended"],
rules: {
"camelcase": "off",
"curly": "off",
"eqeqeq": "off",
"no-array-constructor": "error",
"no-console": "error",
"no-constant-condition": ["error", { checkLoops: false }],
"no-else-return": "off",
"no-loop-func": "error",
"no-plusplus": "off",
"no-redeclare": "error",
"no-undef-init": "error",
"no-undef": "error",
"no-unused-expressions": "error",
"no-use-before-define": "off",
"no-var": "off",
"prefer-const": "off",
"quote-props": ["error", "consistent-as-needed"],
"radix": "off",
"require-await": "error",
"yoda": "error",
},
globals: {
Notification: true,
console: true,
docCookies: true,
lang: true,
LOCALE: true,
MOBILE: true,
performance: true,
pgettext: true,
requestAnimationFrame: true,
requestNextAnimationFrame: true,
setTimeout: true,
SITE_CONFIG: true,
$l: true,
$l_has: true,
AlbumArt: true,
AlbumList: true,
AlbumView: true,
API: true,
ArtistList: true,
Artists: true,
ArtistView: true,
BOOTSTRAP: true,
Clock: true,
DJPanel: true,
ErrorHandler: true,
FastClick: true,
Fave: true,
Formatting: true,
Fx: true,
GroupList: true,
GroupView: true,
HDivChart: true,
Indicator: true,
KeyHandler: true,
ListenerView: true,
Menu: true,
Modal: true,
Mouse: true,
MultiAlbumKeyNav: true,
Prefs: true,
RainwaveAPI: true,
RainwavePlayer: true,
Rating: true,
RatingChart: true,
RequestLineList: true,
Requests: true,
Router: true,
RWAudio: true,
RWEvent: true,
RWTemplates: true,
Scrollbar: true,
SearchList: true,
SearchPanel: true,
SettingsWindow: true,
shuffle: true,
Sizing: true,
Song: true,
SongsTable: true,
SongsTableAlbumSort: true,
SongsTableDetail: true,
SongsTableSorting: true,
Stations: true,
supportsPassiveEvents: true,
Timeline: true,
User: true,
visibilityEventNames: true,
Webcast: true,
},
};