-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy path.eslintrc.js
186 lines (178 loc) · 5.06 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
module.exports = {
parser: '@babel/eslint-parser',
plugins: [
'@babel',
'meteor',
],
env: {
meteor: true,
browser: true,
es2020: true,
node: true,
},
extends: ['airbnb-base', 'plugin:meteor/recommended'],
parserOptions: {
sourceType: 'module',
requireConfigFile: false,
},
rules: {
'no-promise-executor-return': 'off',
'function-call-argument-newline': 'off',
'function-paren-newline': 'off',
'default-param-last': 'off',
'no-multiple-empty-lines': 'off',
'meteor/no-session': 'off',
'import/no-unresolved': 0,
'object-curly-newline': 0,
quotes: ['error', 'single', { allowTemplateLiterals: true }],
'object-shorthand': ['error', 'always'],
'newline-per-chained-call': 0,
// "no-lonely-if": 0,
'prefer-destructuring': ['error', { object: true, array: false }],
'no-empty': ['error', { allowEmptyCatch: true }],
// "no-console": 0,
'max-len': 0,
'func-names': 0,
// "key-spacing": 0,
'no-param-reassign': 0,
// "no-prototype-builtins": 0,
// "prefer-arrow-callback": 0,
'new-cap': [2, {
newIsCap: true,
capIsNewExceptions: ['Match.OneOf', 'Match.Optional', 'Match.ObjectIncluding', 'Match.Where', 'Match.Maybe', 'HTML.Raw', 'CryptoJS.MD5', 'DateTimeFormat'],
}],
// "no-nested-ternary": 0,
'no-eval': 0,
'arrow-parens': ['error', 'as-needed'],
'no-mixed-operators': 'error',
'no-bitwise': 0,
'no-plusplus': 0,
'no-else-return': 0,
'no-underscore-dangle': 0,
'operator-linebreak': ['error', 'after'],
},
globals: {
// Meteor
AccountsGuest: 'readonly',
Picker: 'readonly',
FlowRouter: 'readonly',
BlazeLayout: 'readonly',
SyncedCron: 'readonly',
marked: 'readonly',
AutoForm: 'readonly',
BrowserPolicy: 'readonly',
UAParser: 'readonly',
LocalStore: 'readonly',
CryptoJS: 'readonly',
Papa: 'readonly',
OAuth: 'readonly',
Facts: 'readonly',
moment: 'readonly',
FilesCollection: 'readonly',
Reload: 'writable',
hotkeys: 'readonly',
l: 'writable',
log: 'writable',
error: 'writable',
lp: 'writable',
throttle: 'writable',
Assets: 'writable',
Tilesets: 'writable',
Characters: 'writable',
Entities: 'writable',
Tiles: 'writable',
Zones: 'writable',
Levels: 'writable',
Files: 'writable',
Notifications: 'writable',
Messages: 'writable',
Guilds: 'writable',
Items: 'writable',
Quests: 'writable',
canAccessQuest: 'writable',
remote: 'writable',
_: 'readable',
stats: 'writable',
kebabCase: 'writable',
entityActionType: 'writable',
notify: 'writable',
openConsole: 'writable',
closeConsole: 'writable',
createQuestDraft: 'writable',
analytics: 'writable',
game: 'writable',
createLevel: 'writable',
chest: 'writable',
click: 'writable',
beep: 'writable',
buzz: 'writable',
unlock: 'writable',
deleteLevel: 'writable',
zoom: 'writable',
selectedTileset: 'writable',
selectedCharactersPart: 'writable',
findFirstCharacters: 'writable',
tilesets: 'writable',
layers: 'writable',
peer: 'writable',
settings: 'writable',
meet: 'writable',
meetLowLevel: 'writable',
meetHighLevel: 'writable',
zoneManager: 'writable',
notificationMessage: 'writable',
nippleManager: 'writable',
userChatCircle: 'writable',
userProximitySensor: 'writable',
userVoiceRecorderAbility: 'writable',
charactersParts: 'writable',
characterPopIns: 'writable',
capitalize: 'writable',
generateTURNCredentials: 'writable',
isModalOpen: 'writable',
closeModal: 'writable',
toggleModal: 'writable',
toggleUserProperty: 'writable',
scopes: 'writable',
destroyVideoSource: 'writable',
waitFor: 'writable',
userStreams: 'writable',
streamTypes: 'writable',
generateRandomAvatarURLForUser: 'writable',
levelManager: 'writable',
userManager: 'writable',
entityManager: 'writable',
editorModes: 'writable',
viewportModes: 'writable',
teleportUserInLevel: 'writable',
sendEvent: 'writable',
CharacterReaction: 'writable',
sendAudioChunksToNearUsers: 'writable',
sendAudioChunksToUsersInZone: 'writable',
switchEntityState: 'writable',
activityType: 'writable',
callHooks: 'writable',
createFakeShadow: 'writable',
userLevel: 'writable',
spawnEntityFromPrefab: 'writable',
levelSpawnPosition: 'writable',
relativePositionToCamera: 'writable',
updateViewport: 'writable',
sendDataToUsers: 'writable',
sendDataToUsersInZone: 'writable',
BootScene: 'writable',
EditorScene: 'writable',
LoadingScene: 'writable',
WorldScene: 'writable',
UIScene: 'writable',
eventTypes: 'writable',
addToInventory: 'writable',
removeFromInventory: 'writable',
importSpritesheetFramesAsEntities: 'writable',
rewriteSpritesheet: 'writable',
spritesheetValid: 'writable',
messagesModule: 'writable',
nearUserIdsToString: 'writable',
registerModules: 'writable',
},
};